-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
.swiftlint.yml
84 lines (82 loc) · 1.64 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
disabled_rules: # rule identifiers to exclude from running
- trailing_comma
- operator_whitespace
- force_try
- function_body_length
- trailing_whitespace
- trailing_closure
- vertical_whitespace
- force_unwrapping
- fatal_error_message
- no_extension_access_modifier
- force_cast
- shorthand_operator
- file_name
- missing_docs
- opening_brace
opt_in_rules:
- attributes
- empty_count
- force_unwrapping
- unneeded_parentheses_in_closure_argument
- unavailable_function
- trailing_closure
- strict_fileprivate
- sorted_imports
- sorted_first_last
- single_test_class
- required_enum_case
- redundant_type_annotation
- redundant_nil_coalescing
- prohibited_super_call
- override_in_extension
- overridden_super_call
- operator_usage_whitespace
- no_extension_access_modifier
- multiline_function_chains
- multiline_arguments
- modifier_order
- missing_docs
- lower_acl_than_parent
- literal_expression_end_indentation
- first_where
- file_name
- fatal_error_message
- explicit_init
- empty_xctest_method
- empty_string
- discouraged_optional_collection
- closure_end_indentation
included:
- CriticalMapsKit/Sources
- CriticalMapsKit/Tests
excluded:
- Package.swift
- .build/
- vendor/
- Tests/
- CriticalMapsKit/Sources/L10n/
cyclomatic_complexity:
warning: 15
type_body_length:
warning: 350
nesting:
type_level: 3
line_length: 140
file_length:
warning: 600
error: 1200
type_name:
min_length: 3
max_length:
warning: 40
error: 50
allowed_symbols: ["_Previews"]
identifier_name:
min_length:
warning: 2
excluded:
- t
- a
- b
- n