Skip to content

Commit

Permalink
Revert "Add information about exhaustiveness check to documentation (#…
Browse files Browse the repository at this point in the history
…5160)"

This reverts commit d50bd95.
  • Loading branch information
3flex committed Aug 1, 2022
1 parent d50bd95 commit d35649a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions website/docs/introduction/configurations.md
Expand Up @@ -27,17 +27,11 @@ If config validation is enabled, _detekt_ will verify that your configuration fi
config:
validation: true
warningsAsErrors: false
checkExhaustiveness: false
excludes: ''
```

Invalid or deprecated rules and configuration options are by default printed as warnings unless `warningsAsErrors` is set to `true`.

### Checking for exhaustiveness
If you want to make a conscious decision about activation of every available first party rule, you can set `checkExhaustiveness` to `true`. This will typically happen when new rules become available after updating _detekt_.
You can deactivate all rules from a specific rule set and the exhaustiveness check for this rule set by marking it with `active: false`.

### Excluding custom properties
_Note:_ Custom rules sets are excluded from config validation by default.

If you have extended _detekt_ and rely on a custom properties, you will need to exclude those from config validation by adding their paths to the `excludes` attribute. Multiple values are separated by comma and `.*` can be used as a wildcard (e.g. `propA,build>.*>propB`).
Expand Down

0 comments on commit d35649a

Please sign in to comment.