1
0
mirror of https://github.com/avitex/elixir-glicko synced 2024-11-23 19:59:58 +00:00

Add .credo.exs to .formatter.exs (#4)

Additionally, run `mix format`.
This commit is contained in:
Mikael Muszynski 2020-01-19 15:57:32 +01:00 committed by James
parent db54b10e93
commit 6e22fcf0b0
2 changed files with 65 additions and 67 deletions

View File

@ -1,68 +1,66 @@
%{ %{
configs: [%{ configs: [
name: "default", %{
files: %{ name: "default",
included: ["lib/", "test/"], files: %{
excluded: [~r"/_build/", ~r"/deps/"] included: ["lib/", "test/"],
}, excluded: [~r"/_build/", ~r"/deps/"]
checks: [ },
{Credo.Check.Consistency.ExceptionNames}, checks: [
{Credo.Check.Consistency.LineEndings}, {Credo.Check.Consistency.ExceptionNames},
{Credo.Check.Consistency.ParameterPatternMatching}, {Credo.Check.Consistency.LineEndings},
{Credo.Check.Consistency.SpaceAroundOperators}, {Credo.Check.Consistency.ParameterPatternMatching},
{Credo.Check.Consistency.SpaceInParentheses}, {Credo.Check.Consistency.SpaceAroundOperators},
{Credo.Check.Consistency.TabsOrSpaces}, {Credo.Check.Consistency.SpaceInParentheses},
{Credo.Check.Consistency.TabsOrSpaces},
{Credo.Check.Design.AliasUsage, priority: :low}, {Credo.Check.Design.AliasUsage, priority: :low},
{Credo.Check.Design.DuplicatedCode, excluded_macros: []}, {Credo.Check.Design.DuplicatedCode, excluded_macros: []},
{Credo.Check.Design.TagTODO, exit_status: 2}, {Credo.Check.Design.TagTODO, exit_status: 2},
{Credo.Check.Design.TagFIXME}, {Credo.Check.Design.TagFIXME},
{Credo.Check.Readability.FunctionNames},
{Credo.Check.Readability.FunctionNames}, {Credo.Check.Readability.LargeNumbers},
{Credo.Check.Readability.LargeNumbers}, {Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 80},
{Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 80}, {Credo.Check.Readability.ModuleAttributeNames},
{Credo.Check.Readability.ModuleAttributeNames}, {Credo.Check.Readability.ModuleDoc},
{Credo.Check.Readability.ModuleDoc}, {Credo.Check.Readability.ModuleNames},
{Credo.Check.Readability.ModuleNames}, {Credo.Check.Readability.ParenthesesOnZeroArityDefs},
{Credo.Check.Readability.ParenthesesOnZeroArityDefs}, {Credo.Check.Readability.ParenthesesInCondition},
{Credo.Check.Readability.ParenthesesInCondition}, {Credo.Check.Readability.PredicateFunctionNames},
{Credo.Check.Readability.PredicateFunctionNames}, {Credo.Check.Readability.PreferImplicitTry},
{Credo.Check.Readability.PreferImplicitTry}, {Credo.Check.Readability.RedundantBlankLines},
{Credo.Check.Readability.RedundantBlankLines}, {Credo.Check.Readability.StringSigils},
{Credo.Check.Readability.StringSigils}, {Credo.Check.Readability.TrailingBlankLine},
{Credo.Check.Readability.TrailingBlankLine}, {Credo.Check.Readability.TrailingWhiteSpace},
{Credo.Check.Readability.TrailingWhiteSpace}, {Credo.Check.Readability.VariableNames},
{Credo.Check.Readability.VariableNames}, {Credo.Check.Readability.Semicolons},
{Credo.Check.Readability.Semicolons}, {Credo.Check.Readability.SpaceAfterCommas},
{Credo.Check.Readability.SpaceAfterCommas}, {Credo.Check.Refactor.DoubleBooleanNegation},
{Credo.Check.Refactor.CondStatements},
{Credo.Check.Refactor.DoubleBooleanNegation}, {Credo.Check.Refactor.CyclomaticComplexity},
{Credo.Check.Refactor.CondStatements}, {Credo.Check.Refactor.FunctionArity, [ignore_defp: true]},
{Credo.Check.Refactor.CyclomaticComplexity}, {Credo.Check.Refactor.LongQuoteBlocks},
{Credo.Check.Refactor.FunctionArity, [ignore_defp: true]}, {Credo.Check.Refactor.MatchInCondition},
{Credo.Check.Refactor.LongQuoteBlocks}, {Credo.Check.Refactor.NegatedConditionsInUnless},
{Credo.Check.Refactor.MatchInCondition}, {Credo.Check.Refactor.NegatedConditionsWithElse},
{Credo.Check.Refactor.NegatedConditionsInUnless}, {Credo.Check.Refactor.Nesting},
{Credo.Check.Refactor.NegatedConditionsWithElse}, {Credo.Check.Refactor.PipeChainStart},
{Credo.Check.Refactor.Nesting}, {Credo.Check.Refactor.UnlessWithElse},
{Credo.Check.Refactor.PipeChainStart}, {Credo.Check.Warning.BoolOperationOnSameValues},
{Credo.Check.Refactor.UnlessWithElse}, {Credo.Check.Warning.IExPry},
{Credo.Check.Warning.IoInspect},
{Credo.Check.Warning.BoolOperationOnSameValues}, {Credo.Check.Warning.LazyLogging},
{Credo.Check.Warning.IExPry}, {Credo.Check.Warning.OperationOnSameValues},
{Credo.Check.Warning.IoInspect}, {Credo.Check.Warning.OperationWithConstantResult},
{Credo.Check.Warning.LazyLogging}, {Credo.Check.Warning.UnusedEnumOperation},
{Credo.Check.Warning.OperationOnSameValues}, {Credo.Check.Warning.UnusedFileOperation},
{Credo.Check.Warning.OperationWithConstantResult}, {Credo.Check.Warning.UnusedKeywordOperation},
{Credo.Check.Warning.UnusedEnumOperation}, {Credo.Check.Warning.UnusedListOperation},
{Credo.Check.Warning.UnusedFileOperation}, {Credo.Check.Warning.UnusedPathOperation},
{Credo.Check.Warning.UnusedKeywordOperation}, {Credo.Check.Warning.UnusedRegexOperation},
{Credo.Check.Warning.UnusedListOperation}, {Credo.Check.Warning.UnusedStringOperation},
{Credo.Check.Warning.UnusedPathOperation}, {Credo.Check.Warning.UnusedTupleOperation},
{Credo.Check.Warning.UnusedRegexOperation}, {Credo.Check.Warning.RaiseInsideRescue}
{Credo.Check.Warning.UnusedStringOperation}, ]
{Credo.Check.Warning.UnusedTupleOperation}, }
{Credo.Check.Warning.RaiseInsideRescue}, ]
]
}]
} }

View File

@ -1,3 +1,3 @@
[ [
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] inputs: ["{mix,.formatter,.credo}.exs", "{config,lib,test}/**/*.{ex,exs}"]
] ]