@marcelofabri marcelofabri released this Aug 30, 2017 · 919 commits to master since this release

Assets 5
  • Add is_disjoint rule to encourage using Set.isDisjoint(with:) over
    JP Simard

  • Add xctfail_message rule to enforce XCTFail
    calls to include a description of the assertion.
    Ornithologist Coder

  • Add joined_default_parameter correctable opt-in rule to discourage
    explicit usage of the default separator.
    Ornithologist Coder

  • Files with extensions other than .swift can now be used as arguments
    to --file when linting or autocorrecting.
    Marcelo Fabri

  • Allow ()?, Void?, ()!, and Void! as return types in
    redundant_void_return rule.
    Ryan Booker

  • Add single_test_class opt-in rule to validate that test files
    only contain a single QuickSpec or XCTestCase subclass.
    Ornithologist Coder

  • Produce an error when a // swiftlint:disable command does not silence
    any violations.
    JP Simard

  • Add quick_discouraged_call opt-in rule to discourage calls and object
    initialization inside 'describe' and 'context' block in Quick tests.
    Ornithologist Coder

  • Invalidate cache when Swift version changes.
    Marcelo Fabri

  • Add pattern_matching_keywords opt-in rule to enforce moving let and var
    keywords outside tuples in a switch.
    Marcelo Fabri

  • Add explicit_enum_raw_value opt-in rule to allow refactoring the
    Swift API without breaking the API contract.

  • Add no_grouping_extension opt-in rule to disallow the use of extensions
    for code grouping purposes within the same file.

  • Improve syntactic_sugar violation message to be type-specific.
    Marcelo Fabri

  • Add multiple_closures_with_trailing_closure rule that disallows trailing
    closure syntax when passing more than one closure argument to a function.
    Erik Strottmann

Bug Fixes
  • Fix false positive on force_unwrapping rule when declaring
    local variable with implicity unwrapped type.
    Otávio Lima

  • Fix the warning message and autocorrection of vertical_whitespace rule to
    display the maximum empty lines allowed if max_empty_lines is greater
    than 1.
    Hossam Ghareeb

  • Fix for the wrong configuration being used when using --path and a
    configuration exists in a parent directory.
    Marcelo Fabri

  • Fix false positive on unused_enumerated rule with complex variable
    Marcelo Fabri

  • Fix incorrect violations and autocorrections on
    unneeded_parentheses_in_closure_argument rule that were generated in some
    cases (mainly when using chained method calls with closures).
    Marcelo Fabri