Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds opt-in rule discouraged_optional_collection #2001

Merged
merged 15 commits into from
Mar 27, 2018
Merged
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* Add `empty_string` opt-in rule to validate against comparing strings to `""`
instead of using `.isEmpty`.  
[Davide Sibilio](https://github.com/idevid)

* Add `untyped_error_in_catch` opt-in rule to warn against declaring errors
without an explicit type in catch statements instead of using the implicit
`error` variable.
[Daniel Metzing](https://github.com/dirtydanee)
[#2045](https://github.com/realm/SwiftLint/issues/2045)

* Add `all` keyword for use in disable / enable statement:
`// swiftlint:disable all`.
It allows disabling SwiftLint entirely, in-code, for a particular section.
Expand All @@ -33,6 +33,11 @@
[Ash Furrow](https://github.com/ashfurrow)
[#2051](https://github.com/realm/SwiftLint/issues/2051)

* Adds `discouraged_optional_collection` opt-in rule to encourage the use of
empty collections instead of optional collections.
[Ornithologist Coder](https://github.com/ornithocoder)
[#1885](https://github.com/realm/SwiftLint/issues/1885)

#### Bug Fixes

* Fix TODOs lint message to state that TODOs should be resolved instead of
Expand Down
Loading