-
Notifications
You must be signed in to change notification settings - Fork 198
/
.swiftlint.yml
58 lines (54 loc) · 1.19 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
# Do not specify an `included` section at this top-level file. Specify the
# `--config` option pointing to this file, and the `--path` option to the files
# you wish to lint
included:
- Amplify
- AmplifyPlugins
excluded:
- Pods
- .build
- AmplifyAsyncTesting
- AmplifyFunctionalTests
- AmplifyTestApp
- AmplifyTestCommon
- AmplifyTests
- AmplifyPlugins/Core/AWSPluginsCoreTests
- AmplifyPlugins/Core/AWSPluginsTestCommon
- AmplifyPlugins/Notifications/Push/Tests
- AmplifyPlugins/*/Tests
analyzer_rules:
- unused_import
- unused_declaration
opt_in_rules:
- empty_count
# configurable rules can be customized from this configuration file
closing_brace: error
colon:
severity: error
comma: error
empty_count:
severity: warning
empty_enum_arguments: error
function_body_length:
warning: 150
error: 150
identifier_name:
excluded:
- id
- of
- or
line_length:
ignores_urls: true
ignores_function_declarations: true
ignores_comments: true
warning: 160
error: 160
opening_brace:
severity: error
return_arrow_whitespace: error
statement_position:
severity: error
todo: warning
trailing_semicolon: error
non_optional_string_data_conversion:
severity: error