-
Notifications
You must be signed in to change notification settings - Fork 14
/
.swiftlint.yml
57 lines (55 loc) · 1.13 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
disabled_rules: # rule identifiers to exclude from running
- identifier_name
- todo
- multiple_closures_with_trailing_closure
- cyclomatic_complexity
- file_length
- unused_optional_binding
- implicit_getter
- shorthand_operator
- nesting
- switch_case_alignment
- orphaned_doc_comment
- type_name
- large_tuple
- trailing_comma
- type_body_length
- weak_delegate
- class_delegate_protocol
- trailing_whitespace
opt_in_rules: # some rules are opt-in only
- closure_end_indentation
- convenience_type
- empty_collection_literal
- empty_count
- empty_string
- force_unwrapping
- missing_docs
- multiline_arguments
- multiline_function_chains
- multiline_parameters
- operator_usage_whitespace
- sorted_imports
- toggle_bool
- unneeded_parentheses_in_closure_argument
- vertical_parameter_alignment_on_call
excluded: # paths to ignore during linting
- Carthage
- AEPAssurance/UnitTests
- TestAppObjC
- SampleApps/*/libs
- Pods
- .build
analyzer_rules:
- unused_import
empty_count:
severity: warning
force_cast: warning
force_try: warning
identifier_name:
allowed_symbols: "_"
excluded:
- id
- no
- ok
line_length: 1000