-
Notifications
You must be signed in to change notification settings - Fork 356
/
.swiftlint.yml
51 lines (46 loc) · 1.15 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:
- colon
- comma
- control_statement
- identifier_name
- type_body_length
- opening_brace # Differs from Google swift guidelines enforced by swiftformat
- trailing_comma
- switch_case_alignment # Enables expressions such as [return switch location {}]
- orphaned_doc_comment
opt_in_rules:
- empty_count
analyzer_rules: # rules run by `swiftlint analyze`
- explicit_self
included: # case-sensitive paths to include during linting. `--path` is ignored if present
- .
excluded: # case-sensitive paths to ignore during linting. Takes precedence over `included`
- AdditionalAssets
- Assets
- Build
- Configurations
- MullvadVPNScreenshots
allow_zero_lintable_files: false
force_cast: warning
force_try:
severity: warning
line_length:
ignores_comments: true
ignores_interpolated_strings: true
warning: 120
error: 300
cyclomatic_complexity:
ignores_case_statements: true
type_name:
min_length: 4
max_length:
warning: 50
error: 60
excluded: iPhone # excluded via string
allowed_symbols: ["_"] # these are allowed in type names
reporter: "xcode"
nesting:
type_level:
warning: 2
error: 4