-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
44 lines (34 loc) · 968 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
37
38
39
40
41
42
43
44
disabled_rules: # rule identifiers to exclude from running
- force_cast
- trailing_whitespace
# Find all the available rules by running:
# swiftlint rules
included: # paths to include during linting. `--path` is ignored if present.
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
#type name
type_name:
min_length: 2
max_length:
warning: 50
error: 100
allowed_symbols: "_"
#identifier name
identifier_name:
min_length: 2
max_length:
warning: 50
error: 100
allowed_symbols: "_"
#large tuple starts when number of parameters > 4
large_tuple: 4
# parameterized rules can be customized from this configuration file
line_length: 256
function_parameter_count:
- 30
- 40
# parameterized rules are first parameterized as a warning level, then error level.
type_body_length:
- 500 # warning
- 1000 # error
#reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)