-
Notifications
You must be signed in to change notification settings - Fork 79
/
.swiftlint.yml
61 lines (57 loc) · 1.23 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
included:
- Sources/Core/AWSClientRuntime/Sources
- Sources/Core/AWSSDKChecksums/Sources
- Sources/Core/AWSSDKCommon/Sources
- Sources/Core/AWSSDKEventStreamsAuth/Sources
- Sources/Core/AWSSDKHTTPAuth/Sources
- Sources/Core/AWSSDKIdentity/Sources
analyzer_rules:
- unused_import
- unused_declaration
disabled_rules:
- todo
- identifier_name
- compiler_protocol_init
- function_parameter_count
- multiple_closures_with_trailing_closure
- cyclomatic_complexity
- file_length
- syntactic_sugar
- unused_capture_list
- nesting
- operator_whitespace
- large_tuple
- trailing_comma
- non_optional_string_data_conversion
opt_in_rules:
- empty_count
- sorted_imports
- unused_imports
# 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
generic_type_name:
max_length: 48
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