0.23.0: Permanent Press Cycle
Breaking
- None.
Enhancements
-
Fix csv reporter to output records with new lines.
atetlaw -
Add
contains_over_first_not_nil
rule to encourage usingcontains
over
first(where:) != nil
.
Samuel Susla
#1514 -
Add
fallthrough
rule that flags usage offallthrough
.
Marcelo Fabri
#1834 -
Improve
colon
rule to catch violations in dictionary types
(e.g.[String: Int]
), when usingAny
and on function calls.
Marcelo Fabri
#1074
#1389 -
Add
switch_case_alignment
rule to validate thatcase
anddefault
statements are vertically aligned with their enclosingswitch
statement.
Austin Lu -
Add
array_init
opt-in rule to validate thatArray(foo)
should be preferred
overfoo.map({ $0 })
.
Marcelo Fabri
#1271 -
Truncate long configuration console descriptions to fit in the console window
when runningswiftlint rules
.
JP Simard
#1002 -
Add
multiline_arguments
opt-in rule that warns to either keep
all the arguments of a function call on the same line,
or one per line.
Marcel Jackwerth -
Add
unneeded_break_in_switch
rule to validate that no extrabreak
s are
added inswitch
statements.
Marcelo Fabri
#1870 -
Add
literal_expression_end_indentation
opt-in rule to validate that
array and dictionary literals ends have the same indentation as the line
that started them.
Marcelo Fabri
#1435
Bug Fixes
-
Improve how
opening_brace
rule reports violations locations.
Marcelo Fabri
#1811 -
Fix false negatives in
unneeded_parentheses_in_closure_argument
rule
when using capture lists.
Marcelo Fabri
#1817 -
Fix handling of attributes (
lazy
,objc
, etc.) for thelet_var_whitespace
rule.
David Catmull
#1770
#1812 -
Fix false positives in
for_where
rule when usingif var
insidefor
.
Marcelo Fabri
#1838 -
Fix false positive in
class_delegate_protocol
rule when using Swift 4.0.1.
Marcelo Fabri
#1856 -
Print multi-line configuration values in a single line when running
swiftlint rules
to avoid breaking the table format.
JP Simard
#1002 -
Ignore SwiftLint commands (
swiftlint:(disable|enable)
) infile_header
rule, making it work better withsuperfluous_disable_command
rule.
Marcelo Fabri
#1810 -
Fix false negatives in
generic_type_name
,identifier_name
andtype_name
rules when usingallowed_symbols
.
Marcelo Fabri