-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy path.swiftlint.yml
More file actions
31 lines (30 loc) · 835 Bytes
/
.swiftlint.yml
File metadata and controls
31 lines (30 loc) · 835 Bytes
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
disabled_rules: # rule identifiers to exclude from running
- line_length
- nesting
- variable_name_min_length
- cyclomatic_complexity
- class_delegate_protocol
- multiple_closures_with_trailing_closure
included: # paths to include during linting. `--path` is ignored if present. takes precendence over `excluded`.
excluded: # paths to ignore during linting. overridden by `included`.
- Carthage
# parameterized rules are first parameterized as a warning level, then error level.
line_length: 150
type_name:
min_length: 3 # only warning
max_length: # warning and error
warning: 100
error: 200
function_parameter_count: 10
function_body_length:
- 100
- 200
type_body_length:
- 300 # warning
- 400 # error
file_length:
- 1000 # warning
- 1500 # error
variable_name:
min_length: 2
max_length: 40