-
Notifications
You must be signed in to change notification settings - Fork 16
/
.swiftlint.yml
61 lines (60 loc) · 1.49 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: # paths to include during linting. `--path` is ignored if present.
- Sources/AEPOptimize
# A rule that is not enabled by default. Rules conforming to this need to be explicitly enabled by users.
opt_in_rules:
- attributes
- convenience_type
- closure_end_indentation
- closure_spacing
- collection_alignment
- empty_collection_literal
- empty_count
- empty_string
- first_where
- force_unwrapping
- missing_docs
- multiline_arguments
- multiline_function_chains
- multiline_parameters
- number_separator
- operator_usage_whitespace
- pattern_matching_keywords
- redundant_nil_coalescing
- raw_value_for_camel_cased_codable_enum
- redundant_type_annotation
- sorted_imports
- toggle_bool
- trailing_closure
- unneeded_parentheses_in_closure_argument
- switch_case_on_newline
- vertical_parameter_alignment_on_call
- vertical_whitespace_between_cases
disabled_rules: # rule identifiers to exclude from running
- nesting
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- Package.swift
identifier_name:
allowed_symbols: "_"
excluded:
- id
line_length:
warning: 150
error: 200
ignores_comments: true
ignores_function_declarations: true
ignores_interpolated_strings: false
ignores_urls: true
file_length:
warning: 1200
error: 1500
ignore_comment_only_lines: true
function_body_length:
warning: 180
error: 200
type_body_length:
warning: 350
error: 500
analyzer_rules:
- unused_import
- unused_declaration