Repository navigation
0.11.0: Laundromat Format
The big news in this release is that autocorrect will now optionally re-indent your Swift files like Xcode does.
Big thanks to Jorge Bernal, Norio Nomura, Brian Hardy, Reimar Twelker & Andrew Rahn for contributing to this release!
Breaking
- Now
type_nameallows lowercase enum values to match the Swift API Design
Guidelines.
Jorge Bernal
#654 - Embedding frameworks needed by
swiftlintwas moved from
SwiftLintFramework Xcode target to the swiftlint target.
TheSwiftLintFramework.frameworkproduct built by the
SwiftLintFramework target no longer contains unnecessary frameworks or
multiple copies of the Swift libraries.
Norio Nomura
Enhancements
- Add
--formatoption toautocorrectcommand which re-indents Swift files
much like pasting into Xcode would. This option isn't currently configurable,
but that can change if users request it.
JP Simard - Improve error messages for invalid configuration files.
Brian Hardy - Added the user-configurable option
ignores_empty_linesto the
trailing_whitespacerule. It can be used to control whether the
TrailingWhitespaceRuleshould report and correct whitespace-indented empty
lines. Defaults tofalse. Added unit tests.
Reimar Twelker
Bug Fixes
- Fix false positive in conditional binding cascade violation.
Norio Nomura
#642 - Another conditional binding fix, this time for enum that has two parameters
or an if statement with two case tests.
Andrew Rahn
#667 - Fix regression in CommaRule ignoring violations when the comma is followed
by a comment.
Norio Nomura
#683