-
Notifications
You must be signed in to change notification settings - Fork 17
/
.swiftlint.yml
36 lines (35 loc) · 976 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
31
32
33
34
35
36
disabled_rules: # rule identifiers to exclude from running
- inclusive_language
included: # paths to include during linting. `--path` is ignored if present.
- Source
- Example/Source
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Example/Resources
# configurable rules can be customized from this configuration file.
# complexity of a function
cyclomatic_complexity:
error: 60
warning: 55
# number of lines allowed in a function
function_body_length:
error: 50
warning: 45
# number of parameters allowed for a function
function_parameter_count: 15
# number of lines allowed in a file
file_length:
error: 735
warning: 730
# number of characters allowed in a line
line_length:
error: 200
ignores_comments: true
warning: 195
# Allow for types to be definied within a struct 1 level deep
nesting:
type_level: 2
# number of lines allowed in a type declaration
type_body_length:
error: 370
warning: 365