Swift lints, page 2 of 2
The lint rules of Swift, with what each one finds. This page has 237 cards.
Its name is Trailing Closure. It is in the style kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it. swiftlint --fix can correct it.
- Code
trailing_closure
Its name is Trailing Comma. It is in the style kind of rules. swiftlint --fix can correct it.
- Code
trailing_comma
Its name is Trailing Newline. It is in the style kind of rules. swiftlint --fix can correct it.
- Code
trailing_newline
Its name is Trailing Semicolon. It is in the idiomatic kind of rules. swiftlint --fix can correct it.
- Code
trailing_semicolon
Its name is Trailing Whitespace. It is in the style kind of rules. swiftlint --fix can correct it.
- Code
trailing_whitespace
Its name is Type Body Length. It is in the metrics kind of rules.
- Code
type_body_length
Its name is Type Contents Order. It is in the style kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it.
- Code
type_contents_order
Its name is Unavailable Condition. It is in the idiomatic kind of rules.
- Code
unavailable_condition
Its name is Unavailable Function. It is in the idiomatic kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it.
- Code
unavailable_function
Its name is Unneeded Break in Switch. It is in the idiomatic kind of rules. swiftlint --fix can correct it.
- Code
unneeded_break_in_switch
Its name is Unneeded Escaping. It is in the lint kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it. swiftlint --fix can correct it.
- Code
unneeded_escaping
Its name is Unneeded Overridden Functions. It is in the lint kind of rules. swiftlint --fix can correct it.
- Code
unneeded_override
Its name is Unneeded Parentheses in Closure Argument. It is in the style kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it. swiftlint --fix can correct it.
- Code
unneeded_parentheses_in_closure_argument
Its name is Unneeded Synthesized Initializer. It is in the idiomatic kind of rules. swiftlint --fix can correct it.
- Code
unneeded_synthesized_initializer
Its name is Unneeded (Re)Throws Keyword. It is in the lint kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it. swiftlint --fix can correct it.
- Code
unneeded_throws_rethrows
Its name is Unowned Variable Capture. It is in the lint kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it.
- Code
unowned_variable_capture
Its name is Untyped Error in Catch. It is in the idiomatic kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it. swiftlint --fix can correct it.
- Code
untyped_error_in_catch
Its name is Unused Closure Parameter. It is in the lint kind of rules. swiftlint --fix can correct it.
- Code
unused_closure_parameter
Its name is Unused Control Flow Label. It is in the lint kind of rules. swiftlint --fix can correct it.
- Code
unused_control_flow_label
Its name is Unused Declaration. It is in the lint kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it. It is an analyzer rule, so it runs with swiftlint analyze and needs the compiler log.
- Code
unused_declaration
Its name is Unused Enumerated. It is in the idiomatic kind of rules.
- Code
unused_enumerated
Its name is Unused Import. It is in the lint kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it. It is an analyzer rule, so it runs with swiftlint analyze and needs the compiler log. swiftlint --fix can correct it.
- Code
unused_import
Its name is Unused Optional Binding. It is in the style kind of rules.
- Code
unused_optional_binding
Its name is Unused Setter Value. It is in the lint kind of rules.
- Code
unused_setter_value
Its name is Valid IBInspectable. It is in the lint kind of rules.
- Code
valid_ibinspectable
Its name is Variable Shadowing. It is in the lint kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it.
- Code
variable_shadowing
Its name is Vertical Parameter Alignment. It is in the style kind of rules.
- Code
vertical_parameter_alignment
Its name is Vertical Parameter Alignment on Call. It is in the style kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it.
- Code
vertical_parameter_alignment_on_call
Its name is Vertical Whitespace Between Cases. It is in the style kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it. swiftlint --fix can correct it.
- Code
vertical_whitespace_between_cases
Its name is Vertical Whitespace before Closing Braces. It is in the style kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it. swiftlint --fix can correct it.
- Code
vertical_whitespace_closing_braces
Its name is Vertical Whitespace after Opening Braces. It is in the style kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it. swiftlint --fix can correct it.
- Code
vertical_whitespace_opening_braces
Its name is Void Function in Ternary. It is in the idiomatic kind of rules.
- Code
void_function_in_ternary
Its name is Void Return. It is in the style kind of rules. swiftlint --fix can correct it.
- Code
void_return
Its name is Weak Delegate. It is in the lint kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it.
- Code
weak_delegate
Its name is XCTest Specific Matcher. It is in the idiomatic kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it.
- Code
xct_specific_matcher
Its name is XCTFail Message. It is in the idiomatic kind of rules.
- Code
xctfail_message
Its name is Yoda Condition. It is in the lint kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it.
- Code
yoda_condition