Skip to content

Commit

Permalink
Merge pull request #2001 from ornithocoder/optional_collection
Browse files Browse the repository at this point in the history
Adds opt-in rule discouraged_optional_collection
  • Loading branch information
marcelofabri authored Mar 27, 2018
2 parents 962677a + 90d6399 commit 0982045
Show file tree
Hide file tree
Showing 8 changed files with 1,339 additions and 2 deletions.
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

0 comments on commit 0982045

Please sign in to comment.