0.38.2: Machine Repair Manual
Breaking
- None.
Experimental
- None.
Enhancements
-
Add option to configure which kinds of expressions should omit their
return
keyword by introducing anincluded
configuration for the
implicit_return
rule. Supported values areclosure
,function
and
getter
. Defaults to all three.
Sven Münnich
#2870 -
Add
--correctable
and--verbose
arguments to therules
command
to allow displaying only correctable rules, and to always print the
full configuration details regardless of your terminal width.
Optional Endeavors -
Add
capture_group
option tocustom_rules
for more fine-grained placement
of the location marker for violating code.
pyrtsa -
Add
orphaned_doc_comment
rule to catch doc comments that are not attached
to any declarations.
Marcelo Fabri
#2989 -
Add new indentation opt-in rule (
indentation_width
) checking for
super-basic additive indentation pattern.
Frederick Pietschmann
#227 -
Catch previously missed violations in the
optional_enum_case_matching
rule
when case expressions involved tuples.
JP Simard -
API docs for SwiftLintFramework are now available at
realm.github.io/SwiftLint.Rules.md
now redirects to the rules directory in the API docs
here. Contributors no
longer need to update rule documentation in PRs as this is now done
automatically. The rule documentation now includes the default configuration.
JP Simard
#1653
#1704
#2808
#2933
#2961
Bug Fixes
- Fix issues in
unused_import
rule when correcting violations in files
containing@testable
imports where more than the unused imports would be
removed.
JP Simard