forked from adevinta/spark-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
104 lines (81 loc) · 1.67 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
included:
- SparkCore
- SparkCoreTests
- Spark
- SparkTests
# Enabled rules for CI linting
only_rules:
- colon
- comment_spacing
- custom_rules
- mark
- trailing_closure
- trailing_whitespace
- vertical_parameter_alignment_on_call
- weak_delegate
- comma
- private_subject
- unneeded_parentheses_in_closure_argument
- multiline_arguments
- lower_acl_than_parent
- syntactic_sugar
- unneeded_break_in_switch
- multiline_function_chains
- operator_usage_whitespace
- redundant_optional_initialization
- statement_position
- explicit_self
- empty_count
- force_cast
- force_try
- force_unwrapping
- empty_collection_literal
# Rules triggering ERROR
force_unwrapping:
severity: error
comment_spacing:
severity: error
trailing_whitespace:
severity: error
mark:
severity: error
trailing_closure:
only_single_muted_parameter: true
severity: error
weak_delegate:
severity: error
colon:
severity: error
vertical_parameter_alignment_on_call:
severity: error
private_subject:
severity: error
unneeded_parentheses_in_closure_argument:
severity: error
multiline_arguments:
severity: error
lower_acl_than_parent:
severity: error
syntactic_sugar:
severity: error
comma:
severity: error
unneeded_break_in_switch:
severity: error
multiline_function_chains:
severity: error
operator_usage_whitespace:
severity: error
redundant_optional_initialization:
severity: error
statement_position:
severity: error
explicit_self:
severity: error
custom_rules:
no_debugging_method:
included: ".*\\.swift"
name: "Debugging method"
regex: "(dump\\()|(print\\()|(debugPrint\\()|(NSLog\\()"
message: "Debugging method is not allowed."
severity: error