-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
90 lines (78 loc) · 1.57 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
disabled_rules: # rule identifiers to exclude from running
- trailing_whitespace
- todo
- trailing_semicolon
- sorted_imports
- control_statement
excluded:
- Frameworks
- Pods
- Submodule
- Carthage
opt_in_rules:
- empty_count
- explicit_init
- closure_spacing
- overridden_super_call
- redundant_nil_coalescing
- private_outlet
- nimble_operator
- attributes
- operator_usage_whitespace
- closure_end_indentation
- first_where
- sorted_imports
- object_literal
- number_separator
- prohibited_super_call
- fatal_error_message
- force_unwrapping
- legacy_constant
- vertical_parameter_alignment_on_call
- multiline_parameters
- notification_center_detachment
file_name:
excluded:
- main.swift
force_cast: error
force_try: error
force_unwrapping: error
legacy_constant: error
vertical_parameter_alignment_on_call: error
multiline_parameters: error
notification_center_detachment: error
warning_threshold: 12
line_length:
error: 120
ignores_comments: true
# they can set both implicitly with an array
type_body_length:
- 400 # warning
- 600 # error
# or they can set both explicitly
file_length:
warning: 1200
error: 1600
number_separator:
minimum_length: 5
type_name:
min_length: 4 # only warning
max_length: # warning and error
warning: 50
error: 60
excluded:
- iPhone # excluded via string
- Tag
identifier_name:
min_length: # only min_length
error: 3 # only error
excluded: # excluded via string array
- i
- id
- URL
- vc
- stb
- hud
- HUD
- Aya
- db