Skip to content

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


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


  • None.


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

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

    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

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

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

  • 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

  • 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

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.

  • Don't trigger file_types_order violations in files only containing
    Sam Rayner

  • Force-unwrapping self should trigger a violation of the force_unwrapping
    Dalton Claybrook

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