|
84 | 84 | #
|
85 | 85 | # {Credo.Check.Design.AliasUsage,
|
86 | 86 | # [priority: :low, if_nested_deeper_than: 2, if_called_more_often_than: 0]},
|
87 |
| - |
| 87 | + {Credo.Check.Design.TagFIXME, []}, |
88 | 88 | # You can also customize the exit_status of each check.
|
89 | 89 | # If you don't want TODO comments to cause `mix credo` to fail, just
|
90 | 90 | # set this value to 0 (zero).
|
91 | 91 | #
|
92 | 92 | {Credo.Check.Design.TagTODO, [exit_status: 2]},
|
93 |
| - {Credo.Check.Design.TagFIXME, []}, |
94 | 93 |
|
95 | 94 | #
|
96 | 95 | ## Readability Checks
|
|
123 | 122 | {Credo.Check.Refactor.Apply, []},
|
124 | 123 | {Credo.Check.Refactor.CondStatements, []},
|
125 | 124 | {Credo.Check.Refactor.CyclomaticComplexity, []},
|
| 125 | + {Credo.Check.Refactor.FilterCount, []}, |
| 126 | + {Credo.Check.Refactor.FilterFilter, []}, |
126 | 127 | {Credo.Check.Refactor.FunctionArity, []},
|
127 | 128 | {Credo.Check.Refactor.LongQuoteBlocks, []},
|
128 |
| - {Credo.Check.Refactor.MatchInCondition, []}, |
129 | 129 | {Credo.Check.Refactor.MapJoin, []},
|
| 130 | + {Credo.Check.Refactor.MatchInCondition, []}, |
130 | 131 | {Credo.Check.Refactor.NegatedConditionsInUnless, []},
|
131 | 132 | {Credo.Check.Refactor.NegatedConditionsWithElse, []},
|
132 | 133 | {Credo.Check.Refactor.Nesting, [max_nesting: 3]},
|
| 134 | + {Credo.Check.Refactor.RedundantWithClauseResult, []}, |
| 135 | + {Credo.Check.Refactor.RejectReject, []}, |
133 | 136 | {Credo.Check.Refactor.UnlessWithElse, []},
|
134 | 137 | {Credo.Check.Refactor.WithClauses, []},
|
135 |
| - {Credo.Check.Refactor.FilterCount, []}, |
136 |
| - {Credo.Check.Refactor.FilterFilter, []}, |
137 |
| - {Credo.Check.Refactor.RejectReject, []}, |
138 |
| - {Credo.Check.Refactor.RedundantWithClauseResult, []}, |
139 | 138 |
|
140 | 139 | #
|
141 | 140 | ## Warnings
|
|
151 | 150 | {Credo.Check.Warning.OperationWithConstantResult, []},
|
152 | 151 | {Credo.Check.Warning.RaiseInsideRescue, []},
|
153 | 152 | {Credo.Check.Warning.SpecWithStruct, []},
|
154 |
| - {Credo.Check.Warning.WrongTestFileExtension, []}, |
| 153 | + {Credo.Check.Warning.UnsafeExec, []}, |
155 | 154 | {Credo.Check.Warning.UnusedEnumOperation, []},
|
156 | 155 | {Credo.Check.Warning.UnusedFileOperation, []},
|
157 | 156 | {Credo.Check.Warning.UnusedKeywordOperation, []},
|
|
160 | 159 | {Credo.Check.Warning.UnusedRegexOperation, []},
|
161 | 160 | {Credo.Check.Warning.UnusedStringOperation, []},
|
162 | 161 | {Credo.Check.Warning.UnusedTupleOperation, []},
|
163 |
| - {Credo.Check.Warning.UnsafeExec, []} |
| 162 | + {Credo.Check.Warning.WrongTestFileExtension, []} |
164 | 163 | ],
|
165 | 164 | disabled: [
|
166 | 165 | #
|
167 |
| - # 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, []}, |
168 | 168 |
|
169 | 169 | #
|
170 | 170 | # Controversial and experimental checks (opt-in, just move the check to `:enabled`
|
|
180 | 180 | {Credo.Check.Readability.MultiAlias, []},
|
181 | 181 | {Credo.Check.Readability.NestedFunctionCalls, []},
|
182 | 182 | {Credo.Check.Readability.OneArityFunctionInPipe, []},
|
| 183 | + {Credo.Check.Readability.OnePipePerLine, []}, |
183 | 184 | {Credo.Check.Readability.SeparateAliasRequire, []},
|
184 | 185 | {Credo.Check.Readability.SingleFunctionToBlockPipe, []},
|
185 | 186 | {Credo.Check.Readability.SinglePipe, []},
|
186 | 187 | {Credo.Check.Readability.Specs, []},
|
187 | 188 | {Credo.Check.Readability.StrictModuleLayout, []},
|
188 | 189 | {Credo.Check.Readability.WithCustomTaggedTuple, []},
|
189 |
| - {Credo.Check.Readability.OnePipePerLine, []}, |
190 | 190 | {Credo.Check.Refactor.ABCSize, []},
|
191 | 191 | {Credo.Check.Refactor.AppendSingleItem, []},
|
192 | 192 | {Credo.Check.Refactor.DoubleBooleanNegation, []},
|
|
203 | 203 | {Credo.Check.Warning.LeakyEnvironment, []},
|
204 | 204 | {Credo.Check.Warning.MapGetUnsafePass, []},
|
205 | 205 | {Credo.Check.Warning.MixEnv, []},
|
206 |
| - {Credo.Check.Warning.UnsafeToAtom, []}, |
| 206 | + {Credo.Check.Warning.UnsafeToAtom, []} |
207 | 207 |
|
208 | 208 | # {Credo.Check.Refactor.MapInto, []},
|
209 | 209 |
|
210 |
| - {Credo.Check.Design.AliasUsage, []}, |
211 |
| - {Credo.Check.Readability.PreferImplicitTry, []}, |
212 |
| - |
213 | 210 | #
|
214 | 211 | # Custom checks can be created using `mix credo.gen.check`.
|
215 | 212 | #
|
|
0 commit comments