-
Notifications
You must be signed in to change notification settings - Fork 18
/
.swiftlint.yml
53 lines (49 loc) · 1.01 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
excluded:
- Test
analyzer_rules:
- unused_import
- unused_declaration
disabled_rules:
- trailing_whitespace
- todo
- identifier_name
- compiler_protocol_init
- function_parameter_count
- multiple_closures_with_trailing_closure
- cyclomatic_complexity
- file_length
- syntactic_sugar
- unused_capture_list
- blanket_disable_command
- trailing_comma
opt_in_rules:
- empty_count
- vertical_parameter_alignment_on_call
# configurable rules can be customized from this configuration file
force_cast: warning
closing_brace: error
colon:
severity: error
comma: error
empty_count: warning
empty_enum_arguments: error
function_body_length:
warning: 100
error: 150
identifier_name:
excluded:
- id
- of
- or
line_length:
warning: 120
error: 160
ignores_comments: true
opening_brace: error
return_arrow_whitespace: error
statement_position:
severity: error
todo: warning
trailing_semicolon: error
vertical_parameter_alignment: error
vertical_parameter_alignment_on_call: true