mirror of
https://github.com/mirego/accent.git
synced 2024-11-10 10:09:21 +03:00
58 lines
2.5 KiB
Elixir
58 lines
2.5 KiB
Elixir
%{
|
|
configs: [
|
|
%{
|
|
name: "default",
|
|
strict: true,
|
|
files: %{
|
|
included: ["lib/", "test/", "priv/"],
|
|
excluded: []
|
|
},
|
|
checks: [
|
|
{Credo.Check.Consistency.ExceptionNames},
|
|
{Credo.Check.Consistency.LineEndings},
|
|
{Credo.Check.Consistency.SpaceAroundOperators},
|
|
{Credo.Check.Consistency.SpaceInParentheses},
|
|
{Credo.Check.Consistency.TabsOrSpaces},
|
|
{Credo.Check.Design.AliasUsage, if_called_more_often_than: 2, if_nested_deeper_than: 1},
|
|
{Credo.Check.Design.DuplicatedCode, excluded_macros: []},
|
|
{Credo.Check.Design.TagTODO},
|
|
{Credo.Check.Design.TagFIXME},
|
|
{Credo.Check.Readability.AliasOrder},
|
|
{Credo.Check.Readability.FunctionNames},
|
|
{Credo.Check.Readability.LargeNumbers},
|
|
{Credo.Check.Readability.MaxLineLength, max_length: 200},
|
|
{Credo.Check.Readability.ModuleAttributeNames},
|
|
{Credo.Check.Readability.ModuleDoc, false},
|
|
{Credo.Check.Readability.ModuleNames},
|
|
{Credo.Check.Readability.ParenthesesInCondition},
|
|
{Credo.Check.Readability.PredicateFunctionNames},
|
|
{Credo.Check.Readability.TrailingBlankLine},
|
|
{Credo.Check.Readability.TrailingWhiteSpace},
|
|
{Credo.Check.Readability.VariableNames},
|
|
{Credo.Check.Refactor.ABCSize},
|
|
{Credo.Check.Refactor.CaseTrivialMatches},
|
|
{Credo.Check.Refactor.CondStatements},
|
|
{Credo.Check.Refactor.FunctionArity},
|
|
{Credo.Check.Refactor.MatchInCondition},
|
|
{Credo.Check.Refactor.PipeChainStart, excluded_argument_types: ~w(atom binary fn keyword)a, excluded_functions: ~w(from)},
|
|
{Credo.Check.Refactor.CyclomaticComplexity},
|
|
{Credo.Check.Refactor.NegatedConditionsInUnless},
|
|
{Credo.Check.Refactor.NegatedConditionsWithElse},
|
|
{Credo.Check.Refactor.Nesting},
|
|
{Credo.Check.Refactor.UnlessWithElse},
|
|
{Credo.Check.Warning.IExPry},
|
|
{Credo.Check.Warning.IoInspect},
|
|
{Credo.Check.Warning.OperationOnSameValues},
|
|
{Credo.Check.Warning.BoolOperationOnSameValues},
|
|
{Credo.Check.Warning.UnusedEnumOperation},
|
|
{Credo.Check.Warning.UnusedKeywordOperation},
|
|
{Credo.Check.Warning.UnusedListOperation},
|
|
{Credo.Check.Warning.UnusedStringOperation},
|
|
{Credo.Check.Warning.UnusedTupleOperation},
|
|
{Credo.Check.Warning.OperationWithConstantResult},
|
|
{CredoEnvvar.Check.Warning.EnvironmentVariablesAtCompileTime}
|
|
]
|
|
}
|
|
]
|
|
}
|