SwiftLint v0.11.0 Release Notes
-
๐ฅ Breaking
Now
type_name
allows lowercase enum values to match the Swift API Design Guidelines.
Jorge Bernal #654๐ Embedding frameworks needed by
swiftlint
was moved from SwiftLintFramework Xcode target to the swiftlint target. TheSwiftLintFramework.framework
product built by the SwiftLintFramework target no longer contains unnecessary frameworks or multiple copies of the Swift libraries.
Norio Nomura
โจ Enhancements
โ Add
--format
option toautocorrect
command 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 HardyAdded the user-configurable option
ignores_empty_lines
to thetrailing_whitespace
rule. It can be used to control whether theTrailingWhitespaceRule
should 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 #642Another 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