Skip to content

0.38.2: Machine Repair Manual

Compare
Choose a tag to compare
@jpsim jpsim released this 08 Jan 18:35
76d44cf

Breaking

  • None.

Experimental

  • None.

Enhancements

  • Add option to configure which kinds of expressions should omit their
    return keyword by introducing an included configuration for the
    implicit_return rule. Supported values are closure, function and
    getter. Defaults to all three.
    Sven Münnich
    #2870

  • Add --correctable and --verbose arguments to the rules command
    to allow displaying only correctable rules, and to always print the
    full configuration details regardless of your terminal width.
    Optional Endeavors

  • Add capture_group option to custom_rules for more fine-grained placement
    of the location marker for violating code.
    pyrtsa

  • Add orphaned_doc_comment rule to catch doc comments that are not attached
    to any declarations.
    Marcelo Fabri
    #2989

  • Add new indentation opt-in rule (indentation_width) checking for
    super-basic additive indentation pattern.
    Frederick Pietschmann
    #227

  • Catch previously missed violations in the optional_enum_case_matching rule
    when case expressions involved tuples.
    JP Simard

  • API docs for SwiftLintFramework are now available at
    realm.github.io/SwiftLint. Rules.md
    now redirects to the rules directory in the API docs
    here. Contributors no
    longer need to update rule documentation in PRs as this is now done
    automatically. The rule documentation now includes the default configuration.
    JP Simard
    #1653
    #1704
    #2808
    #2933
    #2961

Bug Fixes

  • Fix issues in unused_import rule when correcting violations in files
    containing @testable imports where more than the unused imports would be
    removed.
    JP Simard