Skip to content

@marcelofabri marcelofabri released this Jun 2, 2019 · 36 commits to master since this release

Breaking

  • Remove the weak_computed_property rule. Please see linked issue for
    discussion and rationale.
    JP Simard
    #2712

Experimental

  • None.

Enhancements

  • Add " - " delimiter to allow commenting SwiftLint commands without triggering
    superfluous_disable_command.
    Kevin Randrup

  • Make testSimulateHomebrewTest() test opt-in because it may fail on unknown
    condition. Set SWIFTLINT_FRAMEWORK_TEST_ENABLE_SIMULATE_HOMEBREW_TEST
    environment variable to test like:

    $ SWIFTLINT_FRAMEWORK_TEST_ENABLE_SIMULATE_HOMEBREW_TEST=1 \
    swift test --filter testSimulateHomebrewTest

    Norio Nomura

  • Add option to configure how nested types should be separated in file names by
    introducting nested_type_separator configuration for the file_name rule.
    Frederick Pietschmann
    #2717

  • Add unowned_variable_capture opt-in rule to warn against unowned captures
    in closures when using Swift 5.
    Marcelo Fabri
    #2097

  • Don't trigger a no_fallthrough_only violation if next case is an
    @unknown default.
    Marcelo Fabri
    #2696

  • Add duplicate_enum_cases rule to validate that an enum doesn't contain
    duplicated cases, as it's impossible to switch on it
    (see SR-10077 for details).
    Marcelo Fabri
    #2676

  • Add legacy_multiple opt-in rule to warn against using the remainder operator
    (%) checking for a remainder of zero when using Swift 5.
    Marcelo Fabri
    #2612

Bug Fixes

  • Don't trigger redundant_void_return violations when using subscript as the
    return type is required.
    Marcelo Fabri

  • Skip module import if cursor info is missing module info.
    alvarhansen
    #2746

  • Don't trigger file_types_order violations in files only containing
    extensions.
    Sam Rayner
    #2749

  • Force-unwrapping self should trigger a violation of the force_unwrapping
    rule.
    Dalton Claybrook
    #2759

Assets 5
You can’t perform that action at this time.