elixir-koans
elixir-koans copied to clipboard
chore: add credo fixes
Hey there!
Introducing a few Credo-related changes:
-
bump Credo version to 1.7.7
- when running Credo with Elixir 1.18, a
CaseClauseErrorwas being raised. This issue was tracked and fixed on Credo's repo, and seems to happen as of Elixir version 1.17. The fix was released on Credo version 1.7.7.
- when running Credo with Elixir 1.18, a
-
Add Credo config file, disabling the
Readability.ModuleDoccheck- since every module has a
@moduledoc falsedoc, there is no point in having this enforced style check, right?
- since every module has a
-
remove false @moduledocs and update hardcoded line reference in test
- one of the tests has a hard coded line reference which decreased by 1 after removing one of the
@moduledoc falselines.
- one of the tests has a hard coded line reference which decreased by 1 after removing one of the
-
fix Readability.PredicateFunctionNames credo check violation
- change
is_range?function name torange?, following the Readability.PredicateFunctionNames style for predicate functions.
- change