Skip to content

Commit

Permalink
Merge pull request #3236 from realm/cg_improve-whitelist-docs
Browse files Browse the repository at this point in the history
Improve visibility of whitelist_rules option
  • Loading branch information
marcelofabri authored Aug 4, 2020
2 parents dc1b607 + 11b13da commit 20b8614
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,19 @@ Rule inclusion:
only configurable rule list (there is no disabled/whitelist equivalent).

```yaml
disabled_rules: # rule identifiers to exclude from running
# By default, SwiftLint uses a set of sensible default rules you can adjust:
disabled_rules: # rule identifiers turned on by default to exclude from running
- colon
- comma
- control_statement
opt_in_rules: # some rules are only opt-in
- empty_count
# Find all the available rules by running:
# swiftlint rules
opt_in_rules: # some rules are turned off by default, so you need to opt-in
- empty_count # Find all the available rules by running: `swiftlint rules`

# Alternatively, specify all rules explicitly by uncommenting this option:
# whitelist_rules: # delete `disabled_rules` & `opt_in_rules` if using this
# - empty_parameters
# - vertical_whitespace

included: # paths to include during linting. `--path` is ignored if present.
- Source
excluded: # paths to ignore during linting. Takes precedence over `included`.
Expand Down

0 comments on commit 20b8614

Please sign in to comment.