-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.swiftlint.yml
74 lines (74 loc) · 1.26 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
disabled_rules:
- todo
- conditional_returns_on_newline
- unused_optional_binding
- file_header
opt_in_rules:
#lint
- prohibited_super_call
- overridden_super_call
- yoda_condition
#style
- unneeded_parentheses_in_closure_argument
- operator_usage_whitespace
- number_separator
- closure_spacing
- closure_end_indentation
- attributes
- file_header
#idiomatic
- redundant_nil_coalescing
- nimble_operator
- explicit_init
#performance
- empty_count
- contains_over_first_not_nil
- empty_string
- first_where
- sorted_first_last
included:
- Sources
excluded:
- docs
- Scripts
- Tests
- Package.swift
closure_end_indentation:
severity: error
force_cast:
severity: error
force_try:
severity: error
function_body_length:
warning: 60
error: 100
cyclomatic_complexity:
warning: 60
error: 60
type_body_length:
warning: 400
error: 500
line_length:
warning: 250
error: 400
file_length:
warning: 700
error: 1200
type_name:
min_length: 3
max_length: 40
severity: error
identifier_name:
min_length: 3
max_length: 40
severity: error
excluded:
- id
- i
attributes:
always_on_same_line:
- "@IBOutlet"
- "@IBAction"
- "@NSManaged"
- "@testable"
reporter: "xcode"