Changelog History
Page 2
-
v1.5.4 Changes
- ๐ Fix bug where
:exit_status
was not a valid option foruse Credo.Check
- ๐ Fix bug where
mix credo diff
exited with a non-zero exit status even if no issues were shown mix credo diff
now fails with an error if the givenref
was not found
- ๐ Fix bug where
-
v1.5.3 Changes
- ๐ Fix bug in
diff
andversion
command whengit
is not installed
- ๐ Fix bug in
-
v1.5.2 Changes
- ๐ Fix output bug in
diff
command - ๐ Fix bug in
diff
command when run on a Git ref that does not contain a given--config-name
- ๐ Fix bug in all commands when a given
--config-name
is not found - ๐ Fix false positive in
Credo.Check.Warning.ExpensiveEmptyEnumCheck
- ๐ Fix false positive in
Credo.Check.Refactor.PipeChainStart
regarding custom operators - ๐ Fix
--version
to include pre version and build info for unpublished versions (e.g. when the dep is included viapath:
orgithub:
)
- ๐ Fix output bug in
-
v1.5.1 Changes
- ๐ Fix bug in
diff
command when run on a subdirectory of a Git repository - ๐ Fix bug in new general param
:files
when excluding files
- ๐ Fix bug in
-
v1.5.0 Changes
- Credo now requires Elixir 1.7 or newer
- ๐จ Refactor check runner (much faster now for common scenarios)
- โ Add param
allow_acronyms
to checkCredo.Check.Readability.FunctionNames
- โ Add name of check to message when printing issues with
--verbose
โ Add support for "dynamic" tagging for checks via
.credo.exs
# Overwrite all tags for
FooCheck
{FooCheck, [tags: [:my_tag]]}# Add tags for
FooCheck
{SomeCredoCheck, [tags: [:initial, :my_tag]]}
Tags can then be used as usual, via the CLI switch
--checks-with[out]-tag
:# Only run checks tagged `:my_tag` during analysis $ mix credo --checks-with-tag my_tag # Exclude all checks tagged `:my_tag` from analysis $ mix credo --checks-without-tag my_tag
๐ New switch to enable file watcher
You can now ask Credo to re-run on file changes:
$ mix credo --watch
๐ New
diff
commandYou can now ask Credo to only report changes in files that were changed since a given Git ref:
$ mix credo diff HEAD^ $ mix credo diff master
๐ You can, of course, combine this with the new
--watch
switch to iteratively fix issues that have come up since the last release:$ mix credo diff v1.4.0 --watch
๐ New general check param
:files
You can now include/exclude specific files or patterns for specific checks.
The syntax is the same as for the top-level
:files
key: -
v1.4.1 Changes
- Ensure compatibility with Elixir 1.11.0
-
v1.4.0 Changes
April 19, 2020๐ Credo's schema for pre-release names changes: There is now a
.
after therc
like in many other Elixir projects.โ Add support for explaining checks (in addition to issues), i.e.
$ mix credo explain Credo.Check.Design.AliasUsage
โ Add support for tags on checks
Checks can now declare tags via the
__using__
macro, i.e.defmodule MyCheck do use Credo.Check, tags: [:foo] def run(%SourceFile{} = source_file, params) do # end end
Tags can be used via the CLI switch
--checks-with[out]-tag
:# Only run checks tagged `:foo` during analysis $ mix credo --checks-with-tag foo # Exclude all checks tagged `:foo` from analysis $ mix credo --checks-without-tag foo
- โ Add validation of check params in config
If a param is not found, Credo checks for mispellings and suggests corrections:
$ mix credo ** (config) Credo.Check.Design.AliasUsage: unknown param `fi_called_more_often_than`. Did you mean `if_called_more_often_than`?
- โ Add auto-generated check docs
- โ Add new documentation on Hex with extra guides and CHANGELOG
-
v1.4.0-rc.2
April 10, 2020 -
v1.4.0-rc.1 Changes
April 02, 2020๐ Credo's schema for pre-release names changes: There is now a
.
after therc
like in many other Elixir projects.โ Add support for explaining checks (in addition to issues), i.e.
$ mix credo explain Credo.Check.Design.AliasUsage
โ Add support for tags on checks
Checks can now declare tags via the
__using__
macro, i.e.defmodule MyCheck do use Credo.Check, tags: [:foo] def run(source_file, params) do # end end
Tags can be used via the CLI switch
--checks-with[out]-tag
:# Only run checks tagged `:foo` during analysis $ mix credo --checks-with-tag foo # Exclude all checks tagged `:foo` from analysis $ mix credo --checks-without-tag foo
- โ Add validation of check params in config
If a param is not found, Credo checks for mispellings and suggests corrections:
$ mix credo ** (config) Credo.Check.Design.AliasUsage: unknown param `fi_called_more_often_than`. Did you mean `if_called_more_often_than`?
- โ Add auto-generated check docs
- โ Add new documentation on Hex with extra guides and CHANGELOG
-
v1.3.2 Changes
March 27, 2020- ๐ Support non-ascii characters in variable names
- ๐ Fix false positive in
Credo.Check.Readability.ParenthesesOnZeroArityDefs