|
82 | 82 | # You can customize the priority of any check |
83 | 83 | # Priority values are: `low, normal, high, higher` |
84 | 84 | # |
85 | | - {Credo.Check.Design.AliasUsage, |
86 | | - [priority: :low, if_nested_deeper_than: 2, if_called_more_often_than: 0]}, |
| 85 | + # Disabled: nested modules in macro quotes require full paths for hygiene |
| 86 | + {Credo.Check.Design.AliasUsage, false}, |
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 | | - {Credo.Check.Design.TagTODO, [exit_status: 2]}, |
| 92 | + {Credo.Check.Design.TagTODO, [exit_status: 0]}, |
93 | 93 |
|
94 | 94 | # |
95 | 95 | ## Readability Checks |
|
105 | 105 | {Credo.Check.Readability.ParenthesesOnZeroArityDefs, []}, |
106 | 106 | {Credo.Check.Readability.PipeIntoAnonymousFunctions, []}, |
107 | 107 | {Credo.Check.Readability.PredicateFunctionNames, []}, |
108 | | - {Credo.Check.Readability.PreferImplicitTry, []}, |
| 108 | + # Disabled: explicit try is clearer for complex exception handling |
| 109 | + {Credo.Check.Readability.PreferImplicitTry, false}, |
109 | 110 | {Credo.Check.Readability.RedundantBlankLines, []}, |
110 | 111 | {Credo.Check.Readability.Semicolons, []}, |
111 | 112 | {Credo.Check.Readability.SpaceAfterCommas, []}, |
|
121 | 122 | # |
122 | 123 | {Credo.Check.Refactor.Apply, []}, |
123 | 124 | {Credo.Check.Refactor.CondStatements, []}, |
124 | | - {Credo.Check.Refactor.CyclomaticComplexity, []}, |
| 125 | + # Increased limit for compiler macros which are inherently complex |
| 126 | + {Credo.Check.Refactor.CyclomaticComplexity, [max_complexity: 30]}, |
125 | 127 | {Credo.Check.Refactor.FilterCount, []}, |
126 | 128 | {Credo.Check.Refactor.FilterFilter, []}, |
127 | 129 | {Credo.Check.Refactor.FunctionArity, []}, |
|
0 commit comments