@jpsim jpsim released this Jan 10, 2018 · 599 commits to master since this release

Assets 5

Breaking

  • None.

Enhancements

  • None.

Bug Fixes

  • No longer log if the indentation key isn't set in the configuration file.
    JP Simard
    #1998

0.24.1: Dented Tumbler

Breaking
  • None.
Enhancements
  • Invalidate cache when Swift patch version changes.
    Norio Nomura

  • Add private_action opt-in rule which warns against public
    @IBAction methods.
    Ornithologist Coder
    #1931

  • Add yoda_condition opt-in rule which warns when Yoda conditions are used.
    That is, when the constant portion of the expression is on the left side of a
    conditional statement.
    Daniel Metzing
    #1924

  • Indentation can now be specified via a configuration file.
    Noah McCann
    RubenSandwich
    #319

  • Add required_enum_case opt-in rule which allows enums that
    conform to protocols to require one or more cases. Useful for
    result enums.
    Donald Ritter

  • Add discouraged_object_literal opt-in rule which encourages initializers
    over object literals.
    Ornithologist Coder
    #1987

  • Adds prefixed_toplevel_constant opt-in rule which encourages top-level
    constants to be prefixed by k.
    Ornithologist Coder
    #1907

  • Added explicit_acl opt-in rule to enforce explicit access control levels.
    Josep Rodriguez
    #1822

Bug Fixes
  • Fix false positives in control_statement rule when methods with keyword
    names are used.
    Marcelo Fabri
    #1946

  • Fix false positives in for_where rule when pattern matching (if case)
    is used.
    Marcelo Fabri
    #1968

  • Fix false positives in unused_closure_parameter rule when closure is wrapped
    in parentheses.
    JP Simard
    #1979

0.24.0: Timed Dry

Breaking
Enhancements
  • Add sorted_first_last opt-in rule to encourage using min() or max()
    over sorted().first or sorted().last.
    Tom Quist
    #1932

  • Add quick_discouraged_focused_test opt-in rule which warns against
    focused tests in Quick tests.
    Ornithologist Coder
    #1905

  • Add override_in_extension opt-in rule that warns against overriding
    declarations in an extension.
    Marcelo Fabri
    #1884

  • Add [f,x]{describe, context, itBehavesLike} to quick_discouraged_call
    rule.
    Ornithologist Coder
    #1903

  • Add quick_discouraged_pending_test opt-in rule which warns against
    pending tests in Quick tests.
    Ornithologist Coder
    #1909

  • Speed up equality tests for [Rule] and Configuration values.
    JP Simard

  • Make Configuration conform to Hashable.
    JP Simard

  • Speed up reading cached results by about 200%.
    JP Simard

  • Add catch to the statements checked by the control_statement rule.
    JP Simard

  • Make sorted_imports correctable.
    Samuel Susla
    JP Simard
    #1822

  • Make sorted_imports only validate within "groups" of imports on directly
    adjacent lines.
    Samuel Susla
    JP Simard
    #1822

Bug Fixes
  • Extend first_where and contains_over_first_not_nil rules to also detect
    cases where calls to filter and first are parenthesized.
    Tom Quist

  • Correct equality tests for Configuration values. They previously didn't
    account for warningThreshold or cachePath.
    JP Simard

  • Fix false positive in multiline_parameters rule when parameter is a closure
    with default value.
    Ornithologist Coder
    #1912

  • Fix caching on Linux.
    JP Simard

  • Fix crashes due to races.
    JP Simard

  • Fix String.characters deprecation warnings when compiling with Swift
    4.0.2.
    JP Simard