-
Notifications
You must be signed in to change notification settings - Fork 131
/
Copy path.swiftlint.yml
46 lines (41 loc) · 1.16 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
# 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
excluded:
- AWSAppSyncClient/Apollo
# Note: This feature is experimental. As of this writing (4-Dec-2018) warnings
# triggered by these rules should not be used to fail builds. Known issues:
# - unused_private_declaration incorrectly triggers on
# AWSAppSyncClientConfiguration.oidcAuthProvider
analyzer_rules:
- unused_import
disabled_rules: # rule identifiers to exclude from running
- file_length
- force_cast
- force_try
- function_parameter_count
- large_tuple
- line_length
- nesting
- redundant_optional_initialization
- trailing_whitespace
- type_body_length
- type_name
- identifier_name
- unused_closure_parameter
- weak_delegate
# configurable rules can be customized from this configuration file
closing_brace: error
comma: error
colon:
severity: error
empty_enum_arguments: error
function_body_length:
warning: 100
error: 150
opening_brace: error
return_arrow_whitespace: error
statement_position:
severity: error
todo: warning
trailing_semicolon: error