|
20 | 20 | strict: true, |
21 | 21 | parse_timeout: 5000, |
22 | 22 | color: true, |
23 | | - checks: [ |
24 | | - {Credo.Check.Consistency.ExceptionNames, []}, |
25 | | - {Credo.Check.Consistency.LineEndings, []}, |
26 | | - {Credo.Check.Consistency.ParameterPatternMatching, []}, |
27 | | - {Credo.Check.Consistency.SpaceAroundOperators, []}, |
28 | | - {Credo.Check.Consistency.SpaceInParentheses, []}, |
29 | | - {Credo.Check.Consistency.TabsOrSpaces, []}, |
30 | | - {Credo.Check.Design.AliasUsage, [priority: :low, if_nested_deeper_than: 2, if_called_more_often_than: 0]}, |
31 | | - {Credo.Check.Design.TagTODO, [exit_status: 2]}, |
32 | | - {Credo.Check.Design.TagFIXME, []}, |
33 | | - {Credo.Check.Readability.AliasOrder, []}, |
34 | | - {Credo.Check.Readability.FunctionNames, []}, |
35 | | - {Credo.Check.Readability.LargeNumbers, []}, |
36 | | - {Credo.Check.Readability.MaxLineLength, [priority: :low, max_length: 120]}, |
37 | | - {Credo.Check.Readability.ModuleAttributeNames, []}, |
38 | | - {Credo.Check.Readability.ModuleDoc, []}, |
39 | | - {Credo.Check.Readability.ModuleNames, []}, |
40 | | - {Credo.Check.Readability.ParenthesesInCondition, []}, |
41 | | - {Credo.Check.Readability.ParenthesesOnZeroArityDefs, []}, |
42 | | - {Credo.Check.Readability.PredicateFunctionNames, []}, |
43 | | - {Credo.Check.Readability.PreferImplicitTry, []}, |
44 | | - {Credo.Check.Readability.RedundantBlankLines, []}, |
45 | | - {Credo.Check.Readability.Semicolons, []}, |
46 | | - {Credo.Check.Readability.SpaceAfterCommas, []}, |
47 | | - {Credo.Check.Readability.StringSigils, []}, |
48 | | - {Credo.Check.Readability.TrailingBlankLine, []}, |
49 | | - {Credo.Check.Readability.TrailingWhiteSpace, []}, |
50 | | - {Credo.Check.Readability.UnnecessaryAliasExpansion, []}, |
51 | | - {Credo.Check.Readability.VariableNames, []}, |
52 | | - {Credo.Check.Refactor.CondStatements, []}, |
53 | | - {Credo.Check.Refactor.CyclomaticComplexity, []}, |
54 | | - {Credo.Check.Refactor.FunctionArity, []}, |
55 | | - {Credo.Check.Refactor.LongQuoteBlocks, []}, |
56 | | - {Credo.Check.Refactor.MatchInCondition, []}, |
57 | | - {Credo.Check.Refactor.NegatedConditionsInUnless, []}, |
58 | | - {Credo.Check.Refactor.NegatedConditionsWithElse, []}, |
59 | | - {Credo.Check.Refactor.Nesting, []}, |
60 | | - {Credo.Check.Refactor.UnlessWithElse, []}, |
61 | | - {Credo.Check.Refactor.WithClauses, []}, |
62 | | - {Credo.Check.Warning.ApplicationConfigInModuleAttribute, []}, |
63 | | - {Credo.Check.Warning.BoolOperationOnSameValues, []}, |
64 | | - {Credo.Check.Warning.ExpensiveEmptyEnumCheck, []}, |
65 | | - {Credo.Check.Warning.IExPry, []}, |
66 | | - {Credo.Check.Warning.IoInspect, []}, |
67 | | - {Credo.Check.Warning.MixEnv, false}, |
68 | | - {Credo.Check.Warning.OperationOnSameValues, []}, |
69 | | - {Credo.Check.Warning.OperationWithConstantResult, []}, |
70 | | - {Credo.Check.Warning.RaiseInsideRescue, []}, |
71 | | - {Credo.Check.Warning.UnusedEnumOperation, []}, |
72 | | - {Credo.Check.Warning.UnusedFileOperation, []}, |
73 | | - {Credo.Check.Warning.UnusedKeywordOperation, []}, |
74 | | - {Credo.Check.Warning.UnusedListOperation, []}, |
75 | | - {Credo.Check.Warning.UnusedPathOperation, []}, |
76 | | - {Credo.Check.Warning.UnusedRegexOperation, []}, |
77 | | - {Credo.Check.Warning.UnusedStringOperation, []}, |
78 | | - {Credo.Check.Warning.UnusedTupleOperation, []}, |
79 | | - {Credo.Check.Warning.UnsafeExec, []}, |
80 | | - {Credo.Check.Consistency.MultiAliasImportRequireUse, false}, |
81 | | - {Credo.Check.Consistency.UnusedVariableNames, false}, |
82 | | - {Credo.Check.Design.DuplicatedCode, false}, |
83 | | - {Credo.Check.Readability.AliasAs, false}, |
84 | | - {Credo.Check.Readability.BlockPipe, false}, |
85 | | - {Credo.Check.Readability.ImplTrue, false}, |
86 | | - {Credo.Check.Readability.MultiAlias, false}, |
87 | | - {Credo.Check.Readability.SeparateAliasRequire, false}, |
88 | | - {Credo.Check.Readability.SinglePipe, false}, |
89 | | - {Credo.Check.Readability.Specs, false}, |
90 | | - {Credo.Check.Readability.StrictModuleLayout, false}, |
91 | | - {Credo.Check.Readability.WithCustomTaggedTuple, false}, |
92 | | - {Credo.Check.Refactor.ABCSize, false}, |
93 | | - {Credo.Check.Refactor.AppendSingleItem, false}, |
94 | | - {Credo.Check.Refactor.DoubleBooleanNegation, false}, |
95 | | - {Credo.Check.Refactor.ModuleDependencies, false}, |
96 | | - {Credo.Check.Refactor.NegatedIsNil, false}, |
97 | | - {Credo.Check.Refactor.PipeChainStart, false}, |
98 | | - {Credo.Check.Refactor.VariableRebinding, false}, |
99 | | - {Credo.Check.Warning.LeakyEnvironment, false}, |
100 | | - {Credo.Check.Warning.MapGetUnsafePass, false}, |
101 | | - {Credo.Check.Warning.UnsafeToAtom, false} |
102 | | - ] |
| 23 | + checks: %{ |
| 24 | + enabled: [ |
| 25 | + {Credo.Check.Consistency.ExceptionNames, []}, |
| 26 | + {Credo.Check.Consistency.LineEndings, []}, |
| 27 | + {Credo.Check.Consistency.ParameterPatternMatching, []}, |
| 28 | + {Credo.Check.Consistency.SpaceAroundOperators, []}, |
| 29 | + {Credo.Check.Consistency.SpaceInParentheses, []}, |
| 30 | + {Credo.Check.Consistency.TabsOrSpaces, []}, |
| 31 | + {Credo.Check.Design.AliasUsage, [priority: :low, if_nested_deeper_than: 2, if_called_more_often_than: 0]}, |
| 32 | + {Credo.Check.Design.TagTODO, [exit_status: 2]}, |
| 33 | + {Credo.Check.Design.TagFIXME, []}, |
| 34 | + {Credo.Check.Readability.AliasOrder, []}, |
| 35 | + {Credo.Check.Readability.FunctionNames, []}, |
| 36 | + {Credo.Check.Readability.LargeNumbers, []}, |
| 37 | + {Credo.Check.Readability.MaxLineLength, [priority: :low, max_length: 120]}, |
| 38 | + {Credo.Check.Readability.ModuleAttributeNames, []}, |
| 39 | + {Credo.Check.Readability.ModuleDoc, []}, |
| 40 | + {Credo.Check.Readability.ModuleNames, []}, |
| 41 | + {Credo.Check.Readability.ParenthesesInCondition, []}, |
| 42 | + {Credo.Check.Readability.ParenthesesOnZeroArityDefs, []}, |
| 43 | + {Credo.Check.Readability.PipeIntoAnonymousFunctions, []}, |
| 44 | + {Credo.Check.Readability.PredicateFunctionNames, []}, |
| 45 | + {Credo.Check.Readability.PreferImplicitTry, []}, |
| 46 | + {Credo.Check.Readability.RedundantBlankLines, []}, |
| 47 | + {Credo.Check.Readability.Semicolons, []}, |
| 48 | + {Credo.Check.Readability.SpaceAfterCommas, []}, |
| 49 | + {Credo.Check.Readability.StringSigils, []}, |
| 50 | + {Credo.Check.Readability.TrailingBlankLine, []}, |
| 51 | + {Credo.Check.Readability.TrailingWhiteSpace, []}, |
| 52 | + {Credo.Check.Readability.UnnecessaryAliasExpansion, []}, |
| 53 | + {Credo.Check.Readability.VariableNames, []}, |
| 54 | + {Credo.Check.Readability.WithSingleClause, []}, |
| 55 | + {Credo.Check.Refactor.Apply, []}, |
| 56 | + {Credo.Check.Refactor.CondStatements, []}, |
| 57 | + {Credo.Check.Refactor.CyclomaticComplexity, []}, |
| 58 | + {Credo.Check.Refactor.FunctionArity, []}, |
| 59 | + {Credo.Check.Refactor.LongQuoteBlocks, []}, |
| 60 | + {Credo.Check.Refactor.MatchInCondition, []}, |
| 61 | + {Credo.Check.Refactor.MapJoin, []}, |
| 62 | + {Credo.Check.Refactor.NegatedConditionsInUnless, []}, |
| 63 | + {Credo.Check.Refactor.NegatedConditionsWithElse, []}, |
| 64 | + {Credo.Check.Refactor.Nesting, []}, |
| 65 | + {Credo.Check.Refactor.UnlessWithElse, []}, |
| 66 | + {Credo.Check.Refactor.WithClauses, []}, |
| 67 | + {Credo.Check.Refactor.FilterCount, []}, |
| 68 | + {Credo.Check.Refactor.FilterFilter, []}, |
| 69 | + {Credo.Check.Refactor.RejectReject, []}, |
| 70 | + {Credo.Check.Refactor.RedundantWithClauseResult, []}, |
| 71 | + {Credo.Check.Warning.ApplicationConfigInModuleAttribute, []}, |
| 72 | + {Credo.Check.Warning.BoolOperationOnSameValues, []}, |
| 73 | + {Credo.Check.Warning.Dbg, []}, |
| 74 | + {Credo.Check.Warning.ExpensiveEmptyEnumCheck, []}, |
| 75 | + {Credo.Check.Warning.IExPry, []}, |
| 76 | + {Credo.Check.Warning.IoInspect, []}, |
| 77 | + {Credo.Check.Warning.MissedMetadataKeyInLoggerConfig, []}, |
| 78 | + {Credo.Check.Warning.OperationOnSameValues, []}, |
| 79 | + {Credo.Check.Warning.OperationWithConstantResult, []}, |
| 80 | + {Credo.Check.Warning.RaiseInsideRescue, []}, |
| 81 | + {Credo.Check.Warning.SpecWithStruct, []}, |
| 82 | + {Credo.Check.Warning.WrongTestFileExtension, []}, |
| 83 | + {Credo.Check.Warning.UnusedEnumOperation, []}, |
| 84 | + {Credo.Check.Warning.UnusedFileOperation, []}, |
| 85 | + {Credo.Check.Warning.UnusedKeywordOperation, []}, |
| 86 | + {Credo.Check.Warning.UnusedListOperation, []}, |
| 87 | + {Credo.Check.Warning.UnusedPathOperation, []}, |
| 88 | + {Credo.Check.Warning.UnusedRegexOperation, []}, |
| 89 | + {Credo.Check.Warning.UnusedStringOperation, []}, |
| 90 | + {Credo.Check.Warning.UnusedTupleOperation, []}, |
| 91 | + {Credo.Check.Warning.UnsafeExec, []} |
| 92 | + ], |
| 93 | + disabled: [ |
| 94 | + {Credo.Check.Consistency.MultiAliasImportRequireUse, []}, |
| 95 | + {Credo.Check.Consistency.UnusedVariableNames, []}, |
| 96 | + {Credo.Check.Design.DuplicatedCode, []}, |
| 97 | + {Credo.Check.Design.SkipTestWithoutComment, []}, |
| 98 | + {Credo.Check.Readability.AliasAs, []}, |
| 99 | + {Credo.Check.Readability.BlockPipe, []}, |
| 100 | + {Credo.Check.Readability.ImplTrue, []}, |
| 101 | + {Credo.Check.Readability.MultiAlias, []}, |
| 102 | + {Credo.Check.Readability.NestedFunctionCalls, []}, |
| 103 | + {Credo.Check.Readability.OneArityFunctionInPipe, []}, |
| 104 | + {Credo.Check.Readability.SeparateAliasRequire, []}, |
| 105 | + {Credo.Check.Readability.SingleFunctionToBlockPipe, []}, |
| 106 | + {Credo.Check.Readability.SinglePipe, []}, |
| 107 | + {Credo.Check.Readability.Specs, []}, |
| 108 | + {Credo.Check.Readability.StrictModuleLayout, []}, |
| 109 | + {Credo.Check.Readability.WithCustomTaggedTuple, []}, |
| 110 | + {Credo.Check.Readability.OnePipePerLine, []}, |
| 111 | + {Credo.Check.Refactor.ABCSize, []}, |
| 112 | + {Credo.Check.Refactor.AppendSingleItem, []}, |
| 113 | + {Credo.Check.Refactor.DoubleBooleanNegation, []}, |
| 114 | + {Credo.Check.Refactor.FilterReject, []}, |
| 115 | + {Credo.Check.Refactor.IoPuts, []}, |
| 116 | + {Credo.Check.Refactor.MapMap, []}, |
| 117 | + {Credo.Check.Refactor.ModuleDependencies, []}, |
| 118 | + {Credo.Check.Refactor.NegatedIsNil, []}, |
| 119 | + {Credo.Check.Refactor.PassAsyncInTestCases, []}, |
| 120 | + {Credo.Check.Refactor.PipeChainStart, []}, |
| 121 | + {Credo.Check.Refactor.RejectFilter, []}, |
| 122 | + {Credo.Check.Refactor.VariableRebinding, []}, |
| 123 | + {Credo.Check.Warning.LazyLogging, []}, |
| 124 | + {Credo.Check.Warning.LeakyEnvironment, []}, |
| 125 | + {Credo.Check.Warning.MapGetUnsafePass, []}, |
| 126 | + {Credo.Check.Warning.MixEnv, []}, |
| 127 | + {Credo.Check.Warning.UnsafeToAtom, []} |
| 128 | + ] |
| 129 | + } |
103 | 130 | } |
104 | 131 | ] |
105 | 132 | } |
0 commit comments