-
Notifications
You must be signed in to change notification settings - Fork 19
/
.swiftlint.yml
61 lines (61 loc) · 1.59 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
nesting:
type_level:
warning: 2
error: 4
function_level:
warning: 2
error: 4
indentation: 4
disabled_rules:
- cyclomatic_complexity
- file_length
- function_body_length
- function_parameter_count
- identifier_name
- implicit_return
- large_tuple
- redundant_type_annotation
- line_length
- todo
- type_body_length
- type_name
opt_in_rules:
- array_init
- attributes
#- closure_end_indentation ## commented as --format removes option
- closure_spacing
- conditional_returns_on_newline
- contains_over_range_nil_comparison
- empty_count
- empty_string
- explicit_init
- fatal_error_message
- first_where
- implicitly_unwrapped_optional
- joined_default_parameter
#- literal_expression_end_indentation ## commented as --format removes option
- legacy_random
- let_var_whitespace
- lower_acl_than_parent
- multiline_function_chains
- operator_usage_whitespace
- pattern_matching_keywords
- redundant_nil_coalescing
- redundant_type_annotation
- sorted_imports
- trailing_closure
- unneeded_parentheses_in_closure_argument
- untyped_error_in_catch
- vertical_whitespace_closing_braces
- xct_specific_matcher
- yoda_condition
- overridden_super_call
- contains_over_filter_is_empty
trailing_comma:
mandatory_comma: true
excluded:
- keychain/swift-argument-parser
- keychain/trust/cuttlefish/
- keychain/Trieste/OctagonTriesteTests/.build
- keychain/postmodern/dependencies/
- keychain/postmodern/shared/protobuf/