credo
credo copied to clipboard
A static code analysis tool for the Elixir language with a focus on code consistency and teaching.
1.17 deprecates calling remote functions without parentheses, which means that calls like `Foo.Bar.run` and `foo = %{bar: Foo}; foo.bar.run` should instead be formatted like `Foo.Bar.run()` and `foo = %{bar: Foo};...
### Environment * Credo version (`mix credo -v`): `1.7.5-ref.master.c5b4d38+uncommittedchanges` * Erlang/Elixir version (`elixir -v`): ```elixir Erlang/OTP 25 [erts-13.2.2.6] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns] Elixir 1.15.7 (compiled with Erlang/OTP 25)...
To make it easier for credo plugin authors, should credo handle the cases where `:message` or `:trigger` values end up as bitstrings? Credo could always convert these values to strings...
### Environment * Credo version (`mix credo -v`): 1.7.4-ref.np-interpret-user-ops.b900d15036+uncommittedchanges * Erlang/Elixir version (`elixir -v`): Erlang/OTP 25 [erts-13.2.2.5] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] Elixir 1.14.5 (compiled with Erlang/OTP 25) * Operating...
After upgrading to Credo 1.7.6 from 1.7.5 I've noticed that the :ets.whereis function is flagged als following; ┃ [R] ↗ Predicate function names should not start with 'is', and should...
### Environment * Credo version: `1.7.5-ref.main.81cc50fba+uncommittedchanges` * Erlang/Elixir version: ``` Erlang/OTP 26 [erts-14.1] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit] Elixir 1.15.6 (compiled with Erlang/OTP 26)``` * Operating system: OSX ###...
This pull request updates the `Credo.Check.Readability.FunctionNames` module to ignore function names when the sigil is private. It also includes test cases to ensure the expected behavior.
### Precheck * Proposals for new features should be submitted via: https://github.com/rrrene/credo-proposals * For bugs, please do a quick search and make sure the bug has not yet been reported...
### Precheck * Proposals for new features should be submitted via: https://github.com/rrrene/credo-proposals * For bugs, please do a quick search and make sure the bug has not yet been reported...
### Environment * Credo version (`mix credo -v`): 1.7.6 * Erlang/Elixir version (`elixir -v`): 1.16.2 OTP 26 ### What were you trying to do? Run our scheduler app: `mix run...