-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftlint.yml
More file actions
40 lines (37 loc) · 909 Bytes
/
.swiftlint.yml
File metadata and controls
40 lines (37 loc) · 909 Bytes
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
disabled_rules:
- todo
opt_in_rules:
- multiline_arguments
- multiline_function_chains
- multiline_parameters
- operator_usage_whitespace
- toggle_bool
- unneeded_parentheses_in_closure_argument
- yoda_condition
- vertical_whitespace_closing_braces
- closure_end_indentation
- sorted_imports
line_length:
warning: 130
error: 150
ignores_function_declarations: true
ignores_comments: true
ignores_urls: true
identifier_name:
min_length: 2
nesting:
type_level: 2
switch_case_alignment:
indented_cases: true
custom_rules:
swiftgen_assets:
name: "SwiftGen Assets"
regex: 'Image(\.init)?(\(uiImage: (UIImage)?(\.init)?\(named:"(.*)?"\)(!)?\))|(Image\(".*"\))'
message: "Use SG.Assets instead"
severity: warning
double_space:
include: "*.swift"
name: "Double Space"
regex: '([a-z,A-Z] \s+)'
message: "Double space between keywords"
severity: warning