forked from hyperdevs-team/mini-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
124 lines (124 loc) · 2.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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
disabled_rules:
- inclusive_language
- todo
- conditional_returns_on_newline
- unused_optional_binding
- unused_setter_value
opt_in_rules:
#lint
- prohibited_super_call
- overridden_super_call
- yoda_condition
- modifier_order
- anyobject_protocol
#- explicit_acl
- cyclomatic_complexity
#style
- sorted_imports
- duplicate_imports
- unneeded_parentheses_in_closure_argument
- operator_usage_whitespace
- number_separator
- closure_spacing
- closure_end_indentation
- attributes
- file_header
- conditional_returns_on_newline
- implicit_return
- multiline_function_chains
- switch_case_on_newline
- prefer_self_type_over_type_of_self
- vertical_whitespace_between_cases
- vertical_whitespace_closing_braces
- vertical_whitespace_opening_braces
- vertical_parameter_alignment
- vertical_parameter_alignment_on_call
#idiomatic
- redundant_type_annotation
- redundant_nil_coalescing
- nimble_operator
- explicit_init
- empty_parentheses_with_trailing_closure
- prefer_zero_over_explicit_init
#performance
- empty_count
- contains_over_first_not_nil
- empty_string
- first_where
- sorted_first_last
- flatmap_over_map_reduce
included:
- Sources
- Tests
closure_end_indentation:
severity: error
force_cast:
severity: error
force_try:
severity: error
function_parameter_count:
warning: 6
error: 6
function_body_length:
warning: 120
error: 200
cyclomatic_complexity:
warning: 60
error: 60
type_body_length:
warning: 1500
error: 1500
line_length:
warning: 250
error: 400
large_tuple:
warning: 5
error: 5
file_length:
warning: 2000
error: 2000
nesting:
type_level:
warning: 2
function_level:
warning: 2
type_name:
min_length: 3
max_length: 50
excluded:
- iPhone
- my
- BO
- bo
severity: error
identifier_name:
min_length: 3
max_length: 45
excluded:
- i
- to
- x
- y
- z
- a
- b
- rx
- map
- app
- id
- URL
- GlobalAPIKey
- bo
- BO
severity: error
attributes:
always_on_line_above:
- "@discardableResult"
- "@available"
always_on_same_line:
- "@autoclosure"
- "@IBOutlet"
- "@IBAction"
- "@NSManaged"
- "@testable"
reporter: "xcode"