SwiftLint v0.38.2 Release Notes

Release Date: 2020-01-08 // over 4 years ago
  • ๐Ÿ’ฅ 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