SwiftLint v0.42.0-rc.2 Release Notes
Release Date: 2020-12-09 // over 3 years ago-
๐ This is a prerelease version. It won't be published to Homebrew or CocoaPods. But there are many other ways to install:
- ๐ Downloading the attached
SwiftLint.pkg
installer and launching it - ๐ Downloading the attached
portable_swiftlint.zip
archive, extracting it and moving the binary fromportable_swiftlint/swiftlint
to/usr/local/bin
or elsewhere in yourPATH
- ๐ Using Mint:
mint install realm/[email protected]
- ๐ Cloning and building from source:
git clone https://github.com/realm/SwiftLint.git && cd SwiftLint && git checkout 0.42.0-rc.2 && make install
๐ Changes from 0.42.0-rc.1: 0.42.0-rc.1...0.42.0-rc.2
๐ฅ 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.
0๏ธโฃ Defaults totrue
.
Skoti๐ Renamed
OverridenSuperCallConfiguration
to
OverriddenSuperCallConfiguration
.
Bryan Ricker
๐ #3426Experimental
- None.
โจ Enhancements
Don't report
@UIApplicationDelegateAdaptor
statements inweak-delegate
rule.
Richard Turton
๐ #3286Don't report
unavailable_function
violations for functions returning
Never
.
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 the
unused_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
๐ #3424Add
non_private_xctest_member
rule.
Keith Smiley๐ Add an
override_allowed_terms
configuration parameter to the
0๏ธโฃinclusive_language
rule, with a default value ofmastercard
.
Dalton Claybrook
๐ #3415๐ Bug Fixes
- โ Remove
@IBOutlet
and@IBInspectable
from UnusedDeclarationRule.
Keith Smiley
๐ #3184
- ๐ Downloading the attached