SwiftLint v0.25.0 Release Notes
-
๐ฅ Breaking
- None.
โจ Enhancements
- Adds
discouraged_optional_boolean
opt-in rule to discourage the use of optional booleans.
Ornithologist Coder #2011
๐ Bug Fixes
๐ Fix some cases where
colon
rule wouldn't be autocorrected.
Manabu Nakazawa๐ Fix false positives in
explicit_acl
rule when declaring functions and properties in protocols or implementingdeinit
.
Marcelo Fabri #2014Fix false negatives in
unneeded_parentheses_in_closure_argument
rule when using_
as one of the closure arguments.
Marcelo Fabri #2017๐ Fix several rules that use attributes when linting with a Swift 4.1 toolchain.
Marcelo Fabri #2019Don't trigger violations in
let_var_whitespace
rule when using local variables when linting with a Swift 4.1 toolchain.
Marcelo Fabri #2021๐ Improve
type_name
rule violations to be positioned on the type name.
Marcelo Fabri #2021๐ Use SourceKit to validate
associatedtype
andtypealias
intype_name
rule when linting with Swift 4.1.
Marcelo Fabri #2021๐ Fix some cases where violations would still be triggered when using the ย
ignores_function_declarations
configuration ofline_length
rule.
ย Manabu NakazawaFix false positive in
empty_enum_arguments
rule when using closures.
Marcelo Fabri #2041๐ Fix false positives in
force_unwrapping
rule when declaring functions that return implicitly unwrapped collections (for example[Int]!
or[AnyHashable: Any]!
).
Marcelo Fabri #2042๐ Fix directories with a
.swift
suffix being treated as files.
Jamie Edge #1948