mirror of
https://github.com/avitex/elixir-glicko
synced 2024-11-26 21:19:57 +00:00
parent
db54b10e93
commit
6e22fcf0b0
12
.credo.exs
12
.credo.exs
@ -1,5 +1,6 @@
|
|||||||
%{
|
%{
|
||||||
configs: [%{
|
configs: [
|
||||||
|
%{
|
||||||
name: "default",
|
name: "default",
|
||||||
files: %{
|
files: %{
|
||||||
included: ["lib/", "test/"],
|
included: ["lib/", "test/"],
|
||||||
@ -12,12 +13,10 @@
|
|||||||
{Credo.Check.Consistency.SpaceAroundOperators},
|
{Credo.Check.Consistency.SpaceAroundOperators},
|
||||||
{Credo.Check.Consistency.SpaceInParentheses},
|
{Credo.Check.Consistency.SpaceInParentheses},
|
||||||
{Credo.Check.Consistency.TabsOrSpaces},
|
{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},
|
||||||
@ -35,7 +34,6 @@
|
|||||||
{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.DoubleBooleanNegation},
|
||||||
{Credo.Check.Refactor.CondStatements},
|
{Credo.Check.Refactor.CondStatements},
|
||||||
{Credo.Check.Refactor.CyclomaticComplexity},
|
{Credo.Check.Refactor.CyclomaticComplexity},
|
||||||
@ -47,7 +45,6 @@
|
|||||||
{Credo.Check.Refactor.Nesting},
|
{Credo.Check.Refactor.Nesting},
|
||||||
{Credo.Check.Refactor.PipeChainStart},
|
{Credo.Check.Refactor.PipeChainStart},
|
||||||
{Credo.Check.Refactor.UnlessWithElse},
|
{Credo.Check.Refactor.UnlessWithElse},
|
||||||
|
|
||||||
{Credo.Check.Warning.BoolOperationOnSameValues},
|
{Credo.Check.Warning.BoolOperationOnSameValues},
|
||||||
{Credo.Check.Warning.IExPry},
|
{Credo.Check.Warning.IExPry},
|
||||||
{Credo.Check.Warning.IoInspect},
|
{Credo.Check.Warning.IoInspect},
|
||||||
@ -62,7 +59,8 @@
|
|||||||
{Credo.Check.Warning.UnusedRegexOperation},
|
{Credo.Check.Warning.UnusedRegexOperation},
|
||||||
{Credo.Check.Warning.UnusedStringOperation},
|
{Credo.Check.Warning.UnusedStringOperation},
|
||||||
{Credo.Check.Warning.UnusedTupleOperation},
|
{Credo.Check.Warning.UnusedTupleOperation},
|
||||||
{Credo.Check.Warning.RaiseInsideRescue},
|
{Credo.Check.Warning.RaiseInsideRescue}
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}]
|
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
[
|
[
|
||||||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
|
inputs: ["{mix,.formatter,.credo}.exs", "{config,lib,test}/**/*.{ex,exs}"]
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user