0.42.0-rc.2
Pre-releaseThis 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.pkginstaller and launching it - Downloading the attached
portable_swiftlint.ziparchive, extracting it and moving the binary fromportable_swiftlint/swiftlintto/usr/local/binor elsewhere in yourPATH - Using Mint:
mint install realm/SwiftLint@0.42.0-rc.2 - 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.xcworkspaceandSwiftLint.xcprojecthave been completely
removed. You can still use Xcode to develop SwiftLint by opening it as
a Swift Package by typingxed .orxed Package.swiftfrom your
shell.
JP Simard
#3412 -
Renamed
statement_leveltofunction_levelinnestingrule
configuration.
Skoti -
Separated
type_levelandfunction_levelcounting innesting
rule.
Skoti
#1151 -
function_levelinnestingrule defaults to 2 levels.
Skoti -
Added
check_nesting_in_closures_and_statementsinnestingrule to
search for nested types and functions within closures and statements.
Defaults totrue.
Skoti -
Renamed
OverridenSuperCallConfigurationto
OverriddenSuperCallConfiguration.
Bryan Ricker
#3426
Experimental
- None.
Enhancements
-
Don't report
@UIApplicationDelegateAdaptorstatements inweak-delegaterule.
Richard Turton
#3286 -
Don't report
unavailable_functionviolations for functions returning
Never.
Artem Garmash
#3286 -
Added
always_allow_one_type_in_functionsoption innestingrule
configuration. Defaults tofalse. This allows to nest one type
within a function even if breaking the maximumtype_level.
Skoti
#1151 -
Add option to specify a
child_config/parent_configfile
(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
#1352 -
Add an
always_keep_importsconfiguration option for the
unused_importrule.
Keith Smiley -
Add
comment_spacingrule.
Noah Gilmore
#3233 -
Add
codeclimatereporter to generate JSON reports in codeclimate
format. Could be used for GitLab Code Quality MR Widget.
jkroepke
#3424 -
Add
non_private_xctest_memberrule.
Keith Smiley -
Add an
override_allowed_termsconfiguration parameter to the
inclusive_languagerule, with a default value ofmastercard.
Dalton Claybrook
#3415
Bug Fixes
- Remove
@IBOutletand@IBInspectablefrom UnusedDeclarationRule.
Keith Smiley
#3184