-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftlint.yml
More file actions
108 lines (95 loc) · 1.63 KB
/
Copy path.swiftlint.yml
File metadata and controls
108 lines (95 loc) · 1.63 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# SwiftLint Configuration for SkinLab
# https://github.com/realm/SwiftLint
# Rules to disable
disabled_rules:
- trailing_whitespace
- todo # We track TODOs separately
- opening_brace # Conflicts with SwiftFormat
- for_where
- large_tuple
- legacy_hashing
- multiple_closures_with_trailing_closure
- sorted_first_last
- statement_position
- trailing_comma
- unused_optional_binding
- unused_enumerated
- vertical_whitespace_closing_braces
- implicit_optional_initialization
# Opt-in rules
opt_in_rules:
- empty_count
- overridden_super_call
- private_action
- private_outlet
- redundant_nil_coalescing
- toggle_bool
- unavailable_function
- unowned_variable_capture
- yoda_condition
# Paths to exclude
excluded:
- Pods
- DerivedData
- .build
- scripts
- "*.generated.swift"
- SkinLabTests
- SkinLabUITests
# Rule configurations
line_length:
warning: 200
error: 240
ignores_comments: true
ignores_urls: true
file_length:
warning: 1000
error: 1200
ignore_comment_only_lines: true
type_body_length:
warning: 800
error: 1000
function_body_length:
warning: 200
error: 250
cyclomatic_complexity:
warning: 40
error: 50
nesting:
type_level:
warning: 4
function_level:
warning: 5
identifier_name:
min_length:
warning: 2
error: 1
max_length:
warning: 50
error: 60
excluded:
- a
- b
- f
- g
- r
- n
- p
- v
- id
- x
- y
- i
- j
- k
type_name:
min_length:
warning: 3
error: 2
max_length:
warning: 50
error: 60
function_parameter_count:
warning: 7
error: 9
reporter: "xcode"