SwiftLint v0.38.2 Release Notes
Release Date: 2020-01-08 // over 4 years ago-
๐ฅ Breaking
- None.
Experimental
- None.
โจ Enhancements
โ Add option to configure which kinds of expressions should omit their
return
keyword by introducing anincluded
configuration for theimplicit_return
rule. Supported values areclosure
,function
andgetter
. 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 EndeavorsAdd
capture_group
option tocustom_rules
for more fine-grained placement of the location marker for violating code.
pyrtsaAdd
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 #227Catch 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