-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
67 lines (61 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
disabled_rules:
- todo
opt_in_rules:
- force_unwrapping
- closure_end_indentation
- closure_spacing
- explicit_init
- first_where
- nimble_operator
- operator_usage_whitespace
- overridden_super_call
- prohibited_super_call
- redundant_nil_coalescing
- yoda_condition
force_cast: warning # Eventually this should be removed and reverted back to an error.
identifier_name:
min_length:
warning: 2
excluded:
- id
- to
- gb
- uk
- us
- es
- ok
- vc
- i
- l
- r
- x
- y
- h
- s
- b
- a
file_length:
warning: 800
error: 1000
line_length:
warning: 200
error: 200
ignores_function_declarations: true
ignores_comments: true
ignores_interpolated_strings: true
ignores_urls: true
# they can set both implicitly with an array
type_body_length:
- 600 # warning
- 600 # error
custom_rules:
todo_jira:
name: "TODO/FIXME JIRA"
regex: '(TODO|FIXME)(?!:? ?\([A-Z]+-\d+\)).+'
match_kinds:
- comment
message: "All TODO/FIXME comments must have an associated JIRA of the form '// TODO(XXX-100): ...'"
severity: warning
excluded:
- Pods
- Carthage