@marcelofabri marcelofabri released this Jul 31, 2018 · 126 commits to master since this release

Assets 5


  • None.


  • Append modifier_order description with failure reason.
    Daniel Metzing

  • Decrease default severity of superfluous_disable_command to warning.
    Frederick Pietschmann

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

  • Add only_enforce_after_first_closure_on_first_line configuration
    to multiline_arguments
    Mike Ciesielka

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

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

  • 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

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

  • Add only_private configuration to prefixed_toplevel_constant rule.
    Keith Smiley

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

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

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

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

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

  • redundant_optional_initialization rule now lints local variables.
    Marcelo Fabri

  • Fix autocorrection for redundant_type_annotation rule.
    Marcelo Fabri