|
84 | 84 | # |
85 | 85 | {Credo.Check.Design.AliasUsage, |
86 | 86 | [priority: :low, if_nested_deeper_than: 2, if_called_more_often_than: 0]}, |
| 87 | + {Credo.Check.Design.TagFIXME, []}, |
87 | 88 | # You can also customize the exit_status of each check. |
88 | 89 | # If you don't want TODO comments to cause `mix credo` to fail, just |
89 | 90 | # set this value to 0 (zero). |
90 | 91 | # |
91 | 92 | {Credo.Check.Design.TagTODO, [exit_status: 2]}, |
92 | | - {Credo.Check.Design.TagFIXME, []}, |
93 | 93 |
|
94 | 94 | # |
95 | 95 | ## Readability Checks |
|
99 | 99 | {Credo.Check.Readability.LargeNumbers, []}, |
100 | 100 | {Credo.Check.Readability.MaxLineLength, [priority: :low, max_length: 120]}, |
101 | 101 | {Credo.Check.Readability.ModuleAttributeNames, []}, |
102 | | - {Credo.Check.Readability.ModuleDoc, []}, |
| 102 | + {Credo.Check.Readability.ModuleDoc, false}, |
103 | 103 | {Credo.Check.Readability.ModuleNames, []}, |
104 | 104 | {Credo.Check.Readability.ParenthesesInCondition, []}, |
105 | 105 | {Credo.Check.Readability.ParenthesesOnZeroArityDefs, []}, |
|
122 | 122 | {Credo.Check.Refactor.Apply, []}, |
123 | 123 | {Credo.Check.Refactor.CondStatements, []}, |
124 | 124 | {Credo.Check.Refactor.CyclomaticComplexity, []}, |
| 125 | + {Credo.Check.Refactor.FilterCount, []}, |
| 126 | + {Credo.Check.Refactor.FilterFilter, []}, |
125 | 127 | {Credo.Check.Refactor.FunctionArity, []}, |
126 | 128 | {Credo.Check.Refactor.LongQuoteBlocks, []}, |
127 | | - {Credo.Check.Refactor.MatchInCondition, []}, |
128 | 129 | {Credo.Check.Refactor.MapJoin, []}, |
| 130 | + {Credo.Check.Refactor.MatchInCondition, []}, |
129 | 131 | {Credo.Check.Refactor.NegatedConditionsInUnless, []}, |
130 | 132 | {Credo.Check.Refactor.NegatedConditionsWithElse, []}, |
131 | 133 | {Credo.Check.Refactor.Nesting, []}, |
| 134 | + {Credo.Check.Refactor.RedundantWithClauseResult, []}, |
| 135 | + {Credo.Check.Refactor.RejectReject, []}, |
132 | 136 | {Credo.Check.Refactor.UnlessWithElse, []}, |
133 | 137 | {Credo.Check.Refactor.WithClauses, []}, |
134 | | - {Credo.Check.Refactor.FilterFilter, []}, |
135 | | - {Credo.Check.Refactor.RejectReject, []}, |
136 | | - {Credo.Check.Refactor.RedundantWithClauseResult, []}, |
137 | 138 |
|
138 | 139 | # |
139 | 140 | ## Warnings |
140 | 141 | # |
141 | 142 | {Credo.Check.Warning.ApplicationConfigInModuleAttribute, []}, |
142 | 143 | {Credo.Check.Warning.BoolOperationOnSameValues, []}, |
| 144 | + {Credo.Check.Warning.Dbg, []}, |
143 | 145 | {Credo.Check.Warning.ExpensiveEmptyEnumCheck, []}, |
144 | 146 | {Credo.Check.Warning.IExPry, []}, |
145 | 147 | {Credo.Check.Warning.IoInspect, []}, |
| 148 | + {Credo.Check.Warning.MissedMetadataKeyInLoggerConfig, []}, |
146 | 149 | {Credo.Check.Warning.OperationOnSameValues, []}, |
147 | 150 | {Credo.Check.Warning.OperationWithConstantResult, []}, |
148 | 151 | {Credo.Check.Warning.RaiseInsideRescue, []}, |
149 | 152 | {Credo.Check.Warning.SpecWithStruct, []}, |
150 | | - {Credo.Check.Warning.WrongTestFileExtension, []}, |
| 153 | + {Credo.Check.Warning.UnsafeExec, []}, |
151 | 154 | {Credo.Check.Warning.UnusedEnumOperation, []}, |
152 | 155 | {Credo.Check.Warning.UnusedFileOperation, []}, |
153 | 156 | {Credo.Check.Warning.UnusedKeywordOperation, []}, |
|
156 | 159 | {Credo.Check.Warning.UnusedRegexOperation, []}, |
157 | 160 | {Credo.Check.Warning.UnusedStringOperation, []}, |
158 | 161 | {Credo.Check.Warning.UnusedTupleOperation, []}, |
159 | | - {Credo.Check.Warning.UnsafeExec, []} |
| 162 | + {Credo.Check.Warning.WrongTestFileExtension, []} |
160 | 163 | ], |
161 | 164 | disabled: [ |
162 | 165 | # |
163 | | - # Checks scheduled for next check update (opt-in for now, just replace `false` with `[]`) |
| 166 | + # Checks scheduled for next check update (opt-in for now) |
| 167 | + {Credo.Check.Refactor.UtcNowTruncate, []}, |
164 | 168 |
|
165 | 169 | # |
166 | 170 | # Controversial and experimental checks (opt-in, just move the check to `:enabled` |
|
175 | 179 | {Credo.Check.Readability.ImplTrue, []}, |
176 | 180 | {Credo.Check.Readability.MultiAlias, []}, |
177 | 181 | {Credo.Check.Readability.NestedFunctionCalls, []}, |
| 182 | + {Credo.Check.Readability.OneArityFunctionInPipe, []}, |
| 183 | + {Credo.Check.Readability.OnePipePerLine, []}, |
178 | 184 | {Credo.Check.Readability.SeparateAliasRequire, []}, |
179 | 185 | {Credo.Check.Readability.SingleFunctionToBlockPipe, []}, |
180 | 186 | {Credo.Check.Readability.SinglePipe, []}, |
|
189 | 195 | {Credo.Check.Refactor.MapMap, []}, |
190 | 196 | {Credo.Check.Refactor.ModuleDependencies, []}, |
191 | 197 | {Credo.Check.Refactor.NegatedIsNil, []}, |
| 198 | + {Credo.Check.Refactor.PassAsyncInTestCases, []}, |
192 | 199 | {Credo.Check.Refactor.PipeChainStart, []}, |
193 | 200 | {Credo.Check.Refactor.RejectFilter, []}, |
194 | 201 | {Credo.Check.Refactor.VariableRebinding, []}, |
|
0 commit comments