-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
30 lines (30 loc) · 935 Bytes
/
.swiftlint.yml
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
# By default, SwiftLint uses a set of sensible default rules you can adjust:
disabled_rules: # rule identifiers turned on by default to exclude from running
- line_length
- todo
- large_tuple
- nesting
- statement_position
- private_over_fileprivate
excluded: # paths to ignore during linting. Takes precedence over `included`.
- SameSame/Trash
- Carthage
- Pods
- bak.swift # Exclude files with a wildcard
# naming rules can set warnings/errors for min_length and max_length
# additionally they can set excluded names
type_name:
min_length: 1 # only warning
max_length: # warning and error
warning: 50
error: 60
excluded: iPhone # excluded via string
allowed_symbols: ["_"] # these are allowed in type names
identifier_name:
min_length: 1
#validates_start_with_lowercase: false
function_parameter_count:
warning: 6
type_body_length: 220
cyclomatic_complexity:
ignores_case_statements: true