You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to customize the severity of rules, I added
the possibility to do so via the configuration files.
If no severity is specified, we use the one pre-determined
by the Rule itself.
Example:
```
{
"rules": {
"AlwaysUseLowerCamelCase": "warning",
"AmbiguousTrailingClosureOverload": "error",
"UseLetInEveryBoundCaseVariable": "true", // use rule default
"UseWhereClausesInForLoops": "false", // disabled
}
}
```
In addition, one can now control how pretty-print violations
should be treated in the same way
Example:
```
{
"rules": {
"TrailingComma": "warning",
"LineLength": "error",
"Indentation": "true", // use rule default
"TrailingWhitespace": "false", // disabled
}
}
```
Issue: #879
0 commit comments