Skip to content

0.35.0: Secondary Lint Trap

Compare
Choose a tag to compare
@jpsim jpsim released this 03 Sep 14:08
8dc8421

This is the last release to support building with Swift 4.2.x.

Breaking

  • None.

Experimental

  • None.

Enhancements

  • Type name rules considers SwiftUI template code.
    atfelix
    #2791

  • Add no_space_in_method_call rule to validate that there're no spaces
    between the method name and parentheses in a method call.
    Marcelo Fabri

  • Add contains_over_filter_count opt-in rule to warn against using
    expressions like filter(where:).count > 0 instead of contains(where:).
    Marcelo Fabri
    #2803

  • Add contains_over_filter_is_empty opt-in rule to warn against using
    expressions like filter(where:).isEmpty instead of contains(where:).
    Marcelo Fabri

  • Add empty_collection_literal opt-in rule to prefer using isEmpty to
    comparison to [] or [:].
    Colton Schlosser
    #2807

Bug Fixes