SwiftLint v0.42.0 Release Notes
Release Date: 2020-12-14 // over 3 years ago-
๐ฅ Breaking
๐ SwiftLint now requires Swift 5.2 or higher to build.
JP Simard๐ SwiftLintFramework can no longer be integrated as a Carthage depdendency.
JP Simard #3412๐
SwiftLint.xcworkspace
andSwiftLint.xcproject
have been completely removed. You can still use Xcode to develop SwiftLint by opening it as a Swift Package by typingxed .
orxed Package.swift
from your shell.
JP Simard #3412Renamed
statement_level
tofunction_level
innesting
rule configuration.
SkotiSeparated
type_level
andfunction_level
counting innesting
rule.
Skoti #11510๏ธโฃ
function_level
innesting
rule defaults to 2 levels.
SkotiAdded
check_nesting_in_closures_and_statements
innesting
rule to search for nested types and functions within closures and statements. Defaults totrue
.
Skoti๐ Renamed
OverridenSuperCallConfiguration
toOverriddenSuperCallConfiguration
.
Bryan Ricker #3426
Experimental
- None.
โจ Enhancements
Don't report
@UIApplicationDelegateAdaptor
statements inweak-delegate
rule. Richard Turton #3286Don't report
unavailable_function
violations for functions returningNever
.
Artem Garmash #3286๐ Added
always_allow_one_type_in_functions
option innesting
rule configuration. Defaults tofalse
. This allows to nest one type within a function even if breaking the maximumtype_level
.
Skoti #1151Add option to specify a
child_config
/parent_config
file (local or remote) in any SwiftLint configuration file. Allow passing multiple configuration files via the command line. Improve documentation for multiple configuration files.
Frederick Pietschmann #1352Add an
always_keep_imports
configuration option for theunused_import
rule.
Keith Smileyโ Add
comment_spacing
rule.
Noah Gilmore #3233โ Add
codeclimate
reporter to generate JSON reports in codeclimate format. Could be used for GitLab Code Quality MR Widget.
jkroepke #3424๐ Add an
override_allowed_terms
configuration parameter to theinclusive_language
rule, with a default value ofmastercard
.
Dalton Claybrook #3415
๐ Bug Fixes
- โ Remove
@IBOutlet
and@IBInspectable
from UnusedDeclarationRule.
Keith Smiley #3184