Skip to content

Instantly share code, notes, and snippets.

@rrrene
Created February 1, 2022 21:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rrrene/487a4362873db1fe93fe55b8df27fb28 to your computer and use it in GitHub Desktop.
Save rrrene/487a4362873db1fe93fe55b8df27fb28 to your computer and use it in GitHub Desktop.
All Autofixable standard Credo checks
Credo.Check.Consistency.LineEndings
Credo.Check.Consistency.ParameterPatternMatching
Credo.Check.Consistency.SpaceAroundOperators
Credo.Check.Consistency.SpaceInParentheses
Credo.Check.Consistency.TabsOrSpaces
Credo.Check.Design.AliasUsage
Credo.Check.Readability.AliasOrder
Credo.Check.Readability.FunctionNames
Credo.Check.Readability.LargeNumbers
Credo.Check.Readability.ParenthesesInCondition
Credo.Check.Readability.ParenthesesOnZeroArityDefs
Credo.Check.Readability.PreferImplicitTry
Credo.Check.Readability.RedundantBlankLines
Credo.Check.Readability.Semicolons
Credo.Check.Readability.SpaceAfterCommas
Credo.Check.Readability.StringSigils
Credo.Check.Readability.TrailingBlankLine
Credo.Check.Readability.TrailingWhiteSpace
Credo.Check.Readability.UnnecessaryAliasExpansion
Credo.Check.Readability.WithSingleClause
Credo.Check.Refactor.Apply
Credo.Check.Refactor.CondStatements
Credo.Check.Refactor.MapJoin
Credo.Check.Refactor.NegatedConditionsInUnless
Credo.Check.Refactor.NegatedConditionsWithElse
Credo.Check.Refactor.UnlessWithElse
Credo.Check.Refactor.WithClauses
Credo.Check.Refactor.FilterFilter
Credo.Check.Refactor.RejectReject
Credo.Check.Refactor.RedundantWithClauseResult
Credo.Check.Warning.ExpensiveEmptyEnumCheck
Credo.Check.Warning.WrongTestFileExtension
Credo.Check.Warning.UnusedEnumOperation
Credo.Check.Warning.UnusedFileOperation
Credo.Check.Warning.UnusedKeywordOperation
Credo.Check.Warning.UnusedListOperation
Credo.Check.Warning.UnusedPathOperation
Credo.Check.Warning.UnusedRegexOperation
Credo.Check.Warning.UnusedStringOperation
Credo.Check.Warning.UnusedTupleOperation
@bmitc
Copy link

bmitc commented Apr 29, 2022

Are auto-fixable checks available in Credo or some other tool? I just happened across this Gist by searching for information on one of the checks, but I couldn't find anything regarding auto-fixes.

@rrrene
Copy link
Author

rrrene commented Apr 29, 2022

This is just a list of checks that would lend themselves to be auto-fixable (basically a working document).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment