-
Notifications
You must be signed in to change notification settings - Fork 63
/
.swiftlint.yml
51 lines (51 loc) · 1.16 KB
/
.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
45
46
47
48
49
50
51
disabled_rules: # rule identifiers to exclude from running
- todo
- trailing_whitespace
- type_name # deactivated because swift3 need lowercase enums
opt_in_rules: # some rules are only opt-in
- array_init
- empty_count
- contains_over_first_not_nil
- explicit_init
- fatal_error_message
- first_where
- force_unwrapping
- implicit_return
- joined_default_parameter
- literal_expression_end_indentation
- operator_usage_whitespace
- overridden_super_call
- yoda_condition
# Find all the available rules by running:
# swiftlint rules
whitelist_rules:
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- init.swift
- R.generated.swift
force_cast: error
force_try:
severity: warning # explicitly
line_length:
warning: 90
error: 100
type_body_length:
warning: 300
error: 400
file_length:
warning: 500
error: 850
function_parameter_count:
warning: 6
error: 8
cyclomatic_complexity:
ignores_case_statements: true
warning: 5
error: 7
function_body_length:
warning: 25
error: 32
identifier_name:
excluded: ["id"]
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)