1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
disabled_rules:
# Formatting — owned by SwiftFormat, not SwiftLint
- line_length
- trailing_comma
- trailing_whitespace
- vertical_whitespace
- opening_brace
- closing_brace
- closure_end_indentation
- closure_spacing
- closure_parameter_position
- colon
- comma
- comma_inheritance
- function_name_whitespace
- return_arrow_whitespace
- statement_position
- trailing_newline
- trailing_semicolon
- leading_whitespace
- control_statement
- empty_parentheses_with_trailing_closure
- comment_spacing
- attribute_name_spacing
- attributes
- collection_alignment
- computed_accessors_order
- empty_enum_arguments
- empty_parameters
- implicit_return
- multiline_arguments
- multiline_parameters
- switch_case_alignment
- void_return
- multiple_closures_with_trailing_closure
# Conflicts with @ViewBuilder — let _ = is required there
- redundant_discardable_let
# Not useful at this scale
- nesting
- large_tuple
- file_length
- function_parameter_count
# SwiftUI views naturally have long bodies
function_body_length:
warning: 100
error: 250
type_body_length:
warning: 400
error: 600
cyclomatic_complexity:
warning: 15
error: 25
ignores_case_statements: true
identifier_name:
min_length: 2
excluded:
- id
- x
- y
- z
- i
- j
- k
- v