@jpsim jpsim released this Jan 8, 2019 · 139 commits to master since this release

Breaking

  • None.

Experimental

  • Skip @IBInspectable and deinit declarations in
    unused_private_declaration.
    JP Simard

Enhancements

  • Allow configuring discouraged_object_literal rule to only discourage one
    kind of object literal.
    Marcelo Fabri
    #2439

  • Adds xct_specific_matcher opt-in rule to enforce specific matchers
    over XCTAssertEqual and XCTAssertNotEqual.
    Ornithologist Coder
    #1874

  • Add last_where opt-in rule that warns against using
    .filter { /* ... */ }.last in collections, as
    .last(where: { /* ... */ }) is more efficient.
    Marcelo Fabri

  • Add unused_control_flow_label rule to validate that control flow labels are
    used.
    Marcelo Fabri
    #2227

Bug Fixes

  • Fix false positives on first_where rule when calling filter without a
    closure parameter (for example on a Realm collection).
    Marcelo Fabri

  • Fix false positives on sorted_first_last rule when calling sorted with
    a different argument than by: (e.g. on a Realm collection).
    Marcelo Fabri
    #2533

  • Fix false positives on redundant_objc_attribute rule when using nested
    types.
    Marcelo Fabri
    #2539

  • Fix false positives on vertical_whitespace_between_cases rule when a blank
    line is present but it contains trailing whitespace.
    Ben Staveley-Taylor
    #2538

Assets 5