chore(deps): update dependency credo to v1.7.11 #94
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.3.1
->1.7.11
Release Notes
rrrene/credo (credo)
v1.7.11
Compare Source
:exit_status
and:category
toformat_issue/2
when usingCredo.Check
Credo.Check.Readability.ModuleDoc
fixed false positiveCredo.Check.Warning.UnusedEnumOperation
fixed false positiveCredo.Check.Refactor.ABCSize
fixed false positive for tuples and underscored matches (_foo
)v1.7.10
Compare Source
v1.7.9
Compare Source
Credo.Check.Refactor.ABCSize
fixed false positive for pin operator (^
)Credo.Check.Readability.FunctionNames
fixed false positive for pow operator (**
)Credo.Code.Parameters
when couting parameters for functions with guardsv1.7.8
Compare Source
Credo.Check.Refactor.Apply
fixed false positiveCredo.Check.Warning.IoInspect
fixed false positiveCredo.Check.Warning.UnsafeToAtom
fixed false positiveCredo.Check.Readability.FunctionNames
fixed false positivev1.7.7
Compare Source
Credo.Check.Design.SkipTestWithoutComment
,Credo.Check.Refactor.PassAsyncInTestCases
andCredo.Check.Warning.WrongTestFileExtension
now work for umbrella appsv1.7.6
Compare Source
Credo.Check.Consistency.MultiAliasImportRequireUse
fixed false positiveCredo.Check.Readability.PredicateFunctionNames
now ignores functions that implement a behaviourCredo.Check.Readability.FunctionName
now supports multi-letter sigilsCredo.Check.Readability.Specs
fixed false positiveCredo.Check.Warning.UnusedKeywordOperation
fixed false positivecolumn
information on several checks in case there are two offending calls on the same linev1.7.5
Compare Source
--read-from-stdin
not respecting:files
/:included
paramCredo.Check.Readability.NestedFunctionCalls
no longer crashes for functions with an unquoted namev1.7.4
Compare Source
Credo.Check.Refactor.UtcNowTruncate
as opt-in check (this is scheduled to become a standard check in v1.8):trigger
inCredo.Issue
short
--read-from-stdin
not respecting:files
paramdiff
command not recognizing a git ref as first argumentv1.7.3
Compare Source
Credo.Check.Readability.AliasOrder
now supports a:sort_method
parameterCredo.Check.Readability.PredicateFunctionNames
received fixesCredo.Check.Warning.MissedMetadataKeyInLoggerConfig
received fixesv1.7.2
CHANGELOG.md
is now included in the packageCredo.Check.Readability.NestedFunctionCalls
no longer warns on function calls in interpolated stringsCredo.Check.Readability.PredicateFunctionNames
fixed false positivesCredo.Check.Readability.RedundantBlankLines
fixed a bug with double quotes multiline stringsCredo.Check.Refactor.ModuleDependencies
now takes modules for:excluded_namespaces
parameterCredo.Check.Refactor.NegatedIsNil
no longer leaks memoryCredo.Check.Warning.Dbg
now warns when part of a pipeline and called without parensCredo.Check.Warning.MissedMetadataKeyInLoggerConfig
received various fixes and improvementsv1.7.1
:exit_status
and:category
toformat_issue/2
when usingCredo.Check
Credo.Check.Readability.ModuleDoc
fixed false positiveCredo.Check.Warning.UnusedEnumOperation
fixed false positiveCredo.Check.Refactor.ABCSize
fixed false positive for tuples and underscored matches (_foo
)v1.7.0
Compare Source
Credo.Check.Readability.ModuleDoc
works for Phoenix 1.7+ viewsCredo.Check.Readability.FunctionNames
now ignores custom operatorsCredo.Check.Refactor.Apply
now works in pipesCredo.Check.Consistency.ExceptionNames
does no longer yield an issue if there is only one matchCredo.Check.Readability.ModuleNames
now supports an:ignore
parameterCredo.Check.Design.AliasUsage
now supports an:if_referenced
parameterCredo.Check.Readability.FunctionNames
now works for acronyms in predicate functionsCredo.Check.Readability.NestedFunctionCalls
now works for calls already in a pipeline and local function callsAdd SARIF support
Credo 1.7 provides a formatter that will output data in SARIF format, allowing direct GitHub support via the
Security
tab.You can now use
mix credo --format=sarif
to output results in SARIF format.Add IDs to checks
This was requested for SARIF support and has been added to provide a unique identifier for checks that is more technical than the check name.
Check authors can add IDs to their custom checks by using the
:id
option:...
Credo's naming scheme for these IDs is simple:
EX
stands for Elixir.The first digit represents the category.
The second digit is always
0
for Credo's standard checks (see below).The last two digits are the incremental number of the check.
This means that you can extend Credo with
all while adhering to Credo's own scheme (and of course, you can simply invent a completely different naming scheme for your checks).
Allow passing of multiple files to Mix task
It is now possible to pass a list of files to
mix credo
.This means that you can now use the output of commands to determine which files to analyse, e.g.:
Ensure stable ordering of analysis results
Continuing our quest to remove ambiguity and reduce undocumented behaviour, Credo now orders its results by default.
Credo's results always had one caveat: Their order was determined by the runtime behaviour of the checks and workers running the checks (it was up to the output mechanism to provide its own stable order).
Now, results are always sorted by check ID, filename and line number.
New checks
Credo.Check.Readability.OneArityFunctionInPipe
Credo.Check.Readability.OnePipePerLine
Credo.Check.Refactor.FilterCount
Credo.Check.Refactor.PassAsyncInTestCases
Credo.Check.Warning.MissedMetadataKeyInLoggerConfig
v1.6.7
Compare Source
v1.6.6
Compare Source
Credo.Check.Readability.SpaceAroundOperators
Credo.Check.Warning.UnusedStringOperation
Credo.Code.Scope.mod_name/1
v1.6.5
Compare Source
Credo.Check.Readability.LargeNumbers
messageCredo.Check.Refactor.Apply
Credo.Check.Refactor.NegatedIsNil
Credo.Check.Readability.WithSingleClause
v1.6.4
Compare Source
Credo.Check.Readability.MaxLineLength
Credo.Check.Refactor.PipeChainStart
gen.check
commandv1.6.3
Compare Source
--debug
now includes slowest files, checks and file/check combinationsCredo.Check.Consistency.UnusedVariableNames
Credo.Check.Readability.SpaceAfterCommas
Credo.Check.Warning.ForbiddenModule
Credo.Check.Warning.MixEnv
Credo.Check.Readability.LargeNumbers
now supports:trailing_digits
v1.6.2
Compare Source
-i
as shorthand for--ignore
v1.6.1
Compare Source
v1.6.0
Compare Source
Credo.Check.Readability.SinglePipe
now supports:allow_0_arity_functions
Credo.Check.Design.AliasUsage
now supports:only
First Run Mode
Credo 1.6 features a new mode, designed to be run every time you introduce Credo to an existing codebase.
This offers a couple of suggestions on how to introduce Credo to your workflow/CI.
All of these suggestions are contextualized and project-specific, here's an example when running it on Credo's codebase:
-------------------------------------- 8< --------------------------------------
v1.5.6
Compare Source
v1.5.5
Compare Source
mix credo diff
where too many issues are reported becausev1.5.4
Compare Source
:exit_status
was not a valid option foruse Credo.Check
mix credo diff
exited with a non-zero exit status even if no issues were shownmix credo diff
now fails with an error if the givenref
was not foundv1.5.3
Compare Source
diff
andversion
command whengit
is not installedv1.5.2
Compare Source
diff
commanddiff
command when run on a Git ref that does not contain a given--config-name
--config-name
is not foundCredo.Check.Warning.ExpensiveEmptyEnumCheck
Credo.Check.Refactor.PipeChainStart
regarding custom operators--version
to include pre version and build info for unpublished versions (e.g. when the dep is included viapath:
orgithub:
)v1.5.1
Compare Source
diff
command when run on a subdirectory of a Git repository:files
when excluding filesv1.5.0
Compare Source
allow_acronyms
to checkCredo.Check.Readability.FunctionNames
--verbose
.credo.exs
Overwrite all tags for
FooCheck
Add tags for
FooCheck
Tags can then be used as usual, via the CLI switch
--checks-with[out]-tag
:Only run checks tagged
:my_tag
during analysisExclude all checks tagged
:my_tag
from analysisNew switch to enable file watcher
You can now ask Credo to re-run on file changes:
New
diff
commandYou can now ask Credo to only report changes in files that were changed since a given Git ref:
You can, of course, combine this with the new
--watch
switch to iteratively fix issues that have come up since the last release: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
Compare Source
v1.4.0
Compare Source
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.
Add support for tags on checks
Checks can now declare tags via the
__using__
macro, i.e.Tags can be used via the CLI switch
--checks-with[out]-tag
:Only run checks tagged
:foo
during analysisExclude all checks tagged
:foo
from analysisAdd validation of check params in config
If a param is not found, Credo checks for mispellings and suggests corrections:
Add auto-generated check docs
Add new documentation on Hex with extra guides and CHANGELOG
v1.3.2
Compare Source
Credo.Check.Readability.ParenthesesOnZeroArityDefs
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.