0.27.0: Heavy Duty
Breaking
- None.
Enhancements
-
Append
modifier_order
description with failure reason.
Daniel Metzing
#2269 -
Decrease default severity of
superfluous_disable_command
towarning
.
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
tomultiline_arguments
Mike Ciesielka
#1896 -
Add
anyobject_protocol
opt-in rule which suggests usingAnyObject
over
class
for class-only protocols.
Ornithologist Coder
#2283 -
Add options
prefix_pattern
andsuffix_pattern
to rulefile_name
.
Cihat Gündüz
#2309 -
Add new bool config option
if_only
to ruleconditional_returns_on_newline
to specify that the rule should only be applied toif
statements.
Cihat Gündüz
#2307 -
Add support for globs in
excluded
file paths.
Keith Smiley
#2316 -
Add
only_private
configuration toprefixed_toplevel_constant
rule.
Keith Smiley
#2315 -
Make rule
explicit_type_interface
compatible with rule
redundant_type_annotation
via new optionallow_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
andunused_closure_parameter
rules
when linting with Swift 4.2.
Marcelo Fabri -
Fix
identifier_name
rule false positives withenum
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