Skip to content

Commit

Permalink
Update README and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrhoyt committed Dec 31, 2015
1 parent 2ef4701 commit 37b462d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[JP Simard](https://github.com/jpsim)
[#277](https://github.com/realm/SwiftLint/issues/277)

* Add nested `.swiftlint.yml` configuration support.
* Add nested `.swiftlint.yml` configuration support.
[Scott Hoyt](https://github.com/scottrhoyt)
[#299](https://github.com/realm/SwiftLint/issues/299)

Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ directory to see the currently implemented rules.

### Disable a rule in code

Rules can be disabled with a comment inside a source file with the following format:
Rules can be disabled with a comment inside a source file with the following format:

`// swiftlint:disable <rule>`

Expand Down Expand Up @@ -136,6 +136,20 @@ variable_name_min_length:
reporter: "csv" # reporter type (xcode, json, csv, checkstyle)
```
#### Nested Configurations
SwiftLint supports nesting configuration files for more granular control over
the linting process.
* Set the `use_nested_configs: true` value in your root `.swiftlint.yml` file
* Include additional `.swiftlint.yml` files where necessary in your directory
structure.
* Each file will be linted using the configuration file that is in it's
directory or at the deepest level of it's parent directories. Otherwise the
root configuration will be used.
* `excluded`, `included`, and `use_nested_configs` are ignored for nested
configurations

### Auto-correct

SwiftLint can automatically correct certain violations. Files on disk are
Expand Down

0 comments on commit 37b462d

Please sign in to comment.