This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
.swiftlint.yml
92 lines (78 loc) · 1.63 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
85
86
87
88
89
90
91
92
disabled_rules:
- redundant_string_enum_value
- line_length
- trailing_whitespace
- identifier_name
- opening_brace
opt_in_rules:
- closure_spacing
- conditional_returns_on_newline
- empty_count
- explicit_init
- fatal_error_message
- first_where
- force_unwrapping
- overridden_super_call
- prohibited_super_call
- redundant_nil_coalescing
- operator_usage_whitespace
- array_init
- contains_over_first_not_nil
- joined_default_parameter
- line_length
- literal_expression_end_indentation
- multiline_parameters
- override_in_extension
- pattern_matching_keywords
- redundant_string_enum_value
- sorted_first_last
- unneeded_parentheses_in_closure_argument
- vertical_parameter_alignment_on_call
- nimble_operator
- quick_discouraged_call
- quick_discouraged_focused_test
- quick_discouraged_pending_test
- single_test_class
# TODO: maybe turn it on one day... (a lot of fixes)
# - closure_end_indentation
# - let_var_whitespace
# - implicitly_unwrapped_optional
# - private_outlet
# - object_literal
# - sorted_imports
# - strict_fileprivate
# - switch_case_on_newline
included:
- Sources
- Tests
- Example
excluded:
- SourcePackages
- .build
- Build
- .swiftpm
- Carthage
cyclomatic_complexity:
warning: 25
type_body_length:
warning: 300
error: 500
file_length:
warning: 500
error: 800
type_name:
min_length: 3
max_length:
warning: 50
error: 60
excluded:
- Id
- Ad
nesting:
type_level:
warning: 3
error: 5
superfluous_disable_command: warning
force_unwrapping: error
trailing_semicolon: error
reporter: "xcode"