SwiftLint v0.39.2 Release Notes

Release Date: 2020-04-04 // 1 day ago
  • 🚀 This is the last release to support building with Swift 5.0.x.

    💥 Breaking

    • None.

    Experimental

    • None.

    ✨ Enhancements

    • ➕ Add configuration options to the unused_import rule to require
      explicit import statements for each module referenced in a source
      file (require_explicit_imports). When this setting is enabled,
      an allowed_transitive_imports setting may also be specified to allow
      👀 a mapping of modules to transitively imported modules. See PR for
      👕 details: #3123
      JP Simard
      👕 #3116

    🐛 Bug Fixes

    🛠 Fix more false positives in implicit_getter rule in extensions when using
    Swift 5.2.
    Marcelo Fabri
    👕 #3149

    Fix false positives in redundant_objc_attribute rule in extensions when
    using Swift 5.2.
    Marcelo Fabri

    🛠 Fix false positives in attributes rule when using rethrows using
    Swift 5.2.
    JP Simard

    🛠 Fix false positives in valid_ibinspectable rule when defining inspectable
    properties in class extensions with computed properties using Swift 5.2.
    JP Simard


Previous changes from v0.39.1

  • 💥 Breaking

    • The new rules introduced in 0.39.0 that depend on SwiftSyntax have been temporarily removed as we work out release packaging issues.
      • prohibited_nan_comparison
      • return_value_from_void_function
      • tuple_pattern
      • void_function_in_ternary
        JP Simard #3105

    Experimental

    • None.

    ✨ Enhancements

    • None.

    🐛 Bug Fixes

    • 🛠 Fix unused_import rule reported locations and corrections when multiple @testable imports are involved.
      JP Simard