Skip to content

0.27.0: Heavy Duty

Compare
Choose a tag to compare
@marcelofabri marcelofabri released this 31 Jul 16:45

Breaking

  • None.

Enhancements

  • Append modifier_order description with failure reason.
    Daniel Metzing
    #2269

  • Decrease default severity of superfluous_disable_command to warning.
    Frederick Pietschmann
    #2250

  • Don't touch files when running autocorrect --format if the contents haven't
    changed.
    Marcelo Fabri
    #2249

  • Add only_enforce_after_first_closure_on_first_line configuration
    to multiline_arguments
    Mike Ciesielka
    #1896

  • Add anyobject_protocol opt-in rule which suggests using AnyObject over
    class for class-only protocols.
    Ornithologist Coder
    #2283

  • Add options prefix_pattern and suffix_pattern to rule file_name.
    Cihat Gündüz
    #2309

  • Add new bool config option if_only to rule conditional_returns_on_newline
    to specify that the rule should only be applied to if statements.
    Cihat Gündüz
    #2307

  • Add support for globs in excluded file paths.
    Keith Smiley
    #2316

  • Add only_private configuration to prefixed_toplevel_constant rule.
    Keith Smiley
    #2315

  • Make rule explicit_type_interface compatible with rule
    redundant_type_annotation via new option allow_redundancy.
    Cihat Gündüz
    #2312

  • Add missing_docs rule to warn against undocumented declarations.
    Nef10
    Andrés Cecilia Luque
    #1652

Bug Fixes

  • Fix an issue with control_statement where commas in clauses prevented the
    rule from applying.
    Allen Wu

  • Fix explicit_enum_raw_value, generic_type_name, implicit_return,
    required_enum_case, quick_discouraged_call, array_init,
    closure_parameter_position and unused_closure_parameter rules
    when linting with Swift 4.2.
    Marcelo Fabri

  • Fix identifier_name rule false positives with enum when linting
    using Swift 4.2.
    Marcelo Fabri
    Jacob Greenfield
    #2231

  • Fix a crash when running with Swift 4.2.
    Norio Nomura
    SR-7954

  • Fix false positive on attributes rule when linting a line that is below
    a line with a declaration that has attributes.
    Marcelo Fabri
    #2297

  • redundant_optional_initialization rule now lints local variables.
    Marcelo Fabri
    #2233

  • Fix autocorrection for redundant_type_annotation rule.
    Marcelo Fabri
    #2314