-
Notifications
You must be signed in to change notification settings - Fork 2
/
.swiftlint.yml
49 lines (47 loc) · 963 Bytes
/
.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
identifier_name:
min_length: 2
excluded:
- x
- y
- T
line_length: 120
file_length: 800
type_body_length:
warning: 500
number_separator:
minimum_length: 5
trailing_comma:
mandatory_comma: true
function_body_length:
warning: 100
error: 150
disabled_rules:
- nesting
- redundant_nil_coalescing
- conditional_returns_on_newline
- type_name
- attributes
opt_in_rules: # these settings are inherited from another project - adjust as needed
- closure_spacing
- conditional_returns_on_newline
- empty_count
- explicit_init
- overridden_super_call
- redundant_nil_coalescing
- nimble_operator
- closure_end_indentation
- first_where
- attributes
- operator_usage_whitespace
- prohibited_super_call
- number_separator
- object_literal
- fatal_error_message
excluded:
- Sources/FCPXML/Starters
custom_rules:
leading_whitespace:
name: Tabs
message: Use tab indentation
regex: ^\t* +\t*\S
severity: error