github realm/SwiftLint 0.41.0
0.41.0: World’s Cleanest Voting Booth

latest releases: 0.55.1, 0.55.0, 0.54.0...
3 years ago

laundromat voting

Breaking

  • Changed behavior of strict option on lint and analyze to treat
    all warnings as errors instead of only changing the exit code.
    Jeehut
    #3312

  • Removed the unneeded_notification_center_removal rule because it was
    based on an incorrect premise.
    JP Simard
    #3338

  • The whitelist_rules configuration key has been renamed to
    only_rules.
    Dalton Claybrook

Experimental

  • None.

Enhancements

  • Add use-alternative-excluding option to speed up linting in cases
    described in #3325.
    This option yields different exclusion behavior.
    JohnReeze
    #3304

  • Add test_case_accessibility rule.
    Keith Smiley
    #3376

  • Add more details to CONTRIBUTING.md.
    mknabbe
    #1280

  • Remove @IBOutlet and @IBInspectable from UnusedDeclarationRule.
    Keith Smiley
    #3184

  • Add allow_multiline_func configuration option to opening_brace
    rule, to allow placing { on new line in case of multiline function.
    Defaults to false.
    Zsolt Kovács
    #1921

  • Update the nslocalizedstring_key rule to validate the comment
    argument in addition to the key argument.
    Dalton Claybrook
    #3334

  • Add inclusive_language rule to encourage the use of inclusive
    language that avoids discrimination against groups of people.
    Dalton Claybrook

  • Add prefer_nimble opt-in rule to encourage using Nimble matchers
    over the XCTest ones.
    Marcelo Fabri
    #3293

  • unused_closure_parameter rule now validates closures outside of
    function calls.
    Marcelo Fabri
    #1082

  • Improve documentation for running SwiftLint as Xcode build phase.
    Christian Mitteldorf
    #3169

  • Add skip_aligned_constants (defaults to true) and
    lines_look_around (defaults to 2) configuration parameters to the
    operator_usage_whitespace rule.
    Paul Taykalo
    #3388

Bug Fixes

  • Fix parsing of Xcode 12 compiler logs for analyzer rules.
    JP Simard
    #3365

  • Fix some SwiftUI unused declaration rule false positives.
    JP Simard
    #3365

  • Fix some false positives in rule explicit_self.
    Sven Münnich

  • Fix incorrect autocorrection in prefer_zero_over_explicit_init rule.
    Paul Taykalo

  • Rule unused_capture_list should not be triggered by unowned self
    keyword.
    hank121314
    #3389

  • Fix severity configuration for indentation_width.
    Samasaur1
    #3346

  • Fix DuplicateImportsRule's support for import attributes.
    Keith Smiley
    #3402

  • Allow "allowed symbols" as first character in identifier_name.
    JP Simard
    #3306

  • Fix false positives with parameterized attributes in attributes.
    JP Simard
    #3316

  • Fix some missed cases in rule unavailable_function.
    Quinn Taylor
    #3374

  • Fix incorrect violation message for line length violations.
    JP Simard
    #3333

  • Fix inconsistency in operator_usage_whitespace rule.
    Paul Taykalo
    #3321

  • Fix false positives in convenience_type rule for types that cannot
    be converted to enums.
    ZevEisenberg
    #3033

  • Fix finding a nested config when a single file path is passed.
    Seth Friedman

  • Fix incorrect calculation of the root path when a directory in the
    tree is passed in as a path argument.
    Seth Friedman
    #3383

  • Fix rare false positive in toggle_bool rule.
    Marcelo Fabri
    #3398

Don't miss a new SwiftLint release

NewReleases is sending notifications on new releases.