SwiftLint v0.48.0 Release Notes
-
๐ This is the last release to support building with Swift 5.5.x and running on ๐ macOS < 12.
๐ฅ Breaking
- ๐ Deprecate the
--path
options forlint
/analyze
commands. Prefer the positional paths that can be added last to both commands.
SimplyDanny
Experimental
- None.
โจ Enhancements
๐ Support
iOSApplicationExtension
,macOSApplicationExtension
,watchOSApplicationExtension
, andtvOSApplicationExtension
identifiers in thedeployment_target
rule. To configure the rule for these identifiers, you need to use the keysiOSApplicationExtension_deployment_target
,macOSApplicationExtension_deployment_target
,watchOSApplicationExtension_deployment_target
, andtvOSApplicationExtension_deployment_target
. Extentions default to their counterparts unless they are explicitly defined.
tahabebek #4004Rewrite
operator_usage_whitespace
rule using SwiftSyntax, fixing false positives and false negatives.
Note that this rule doesn't catch violations around return arrows (->
) anymore - they are already handled byreturn_arrow_whitespace
.
Marcelo Fabri #3965 #3668 #2728๐ Support arrays for the
included
andexcluded
options when defining a custom rule.
Marcelo FabriAdd back
void_function_in_ternary
opt-in rule to warn against using a ternary operator to callVoid
functions.
Marcelo FabriSupport
UIEdgeInsets
type inprefer_zero_over_explicit_init
rule.
KokiHirokawa #3986
๐ Bug Fixes
Ignore array types in
syntactic_sugar
rule if their associatedIndex
is accessed.
SimplyDanny #3502Prevent crash for private types named
_
intype_name
rules. sinoru #3971๐ Make
for_where
rule implementation independent of order in structure dictionary. This fixes the rule in Xcode 13.3 where some violation were no longer reported.
SimplyDanny #3975โก๏ธ Update result builder methods in
unused_declaration
rule fixing some false-positives.
SimplyDannyLook for call expressions which are not wrapped into an argument when checking for nested (possibly multiline) arguments fixing some false-negatives in (at least) Xcode 13.2.
SimplyDanny #3975๐ Make sure that include paths prefixed with the name of the original path are included in the analysis.
SimplyDanny #3705Do not trigger
unavailable_condition
rule if other#(un)available
checks are involved.
SimplyDanny #3985โก๏ธ Update
nimble_operator
to support the operators forbeNil()
.
CraigSiemensAvoid false-positive in
let_var_whitespace
rule by allowing custom attributes on lines directly before let/var declarations.
SimplyDanny #2980
- ๐ Deprecate the