-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
executable file
·100 lines (93 loc) · 1.89 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
93
94
95
96
97
98
99
100
disabled_rules:
- trailing_whitespace
- multiline_function_chains
- identifier_name
- discarded_notification_center_observer
- notification_center_detachment
- orphaned_doc_comment
- unused_capture_list
- unused_optional_binding
- multiline_literal_brackets
- multiline_arguments
- multiline_parameters
- multiline_parameters_brackets
- discouraged_object_literal
- unneeded_parentheses_in_closure_argument
- pattern_matching_keywords
- array_init
- prefer_self_type_over_type_of_self
- todo
- multiple_closures_with_trailing_closure
- valid_ibinspectable
- attributes
- type_name
- force_unwrapping
- implicitly_unwrapped_optional
- large_tuple
- function_parameter_count
- closure_end_indentation
- redundant_type_annotation
opt_in_rules:
- empty_count
- empty_string
- closure_spacing
- collection_alignment
- colon
- empty_collection_literal
- enum_case_associated_values_count
- fatal_error_message
- first_where
- implicitly_unwrapped_optional
- last_where
- legacy_random
- literal_expression_end_indentation
- operator_usage_whitespace
- redundant_nil_coalescing
- strict_fileprivate
- toggle_bool
- trailing_closure
- vertical_whitespace_closing_braces
- yoda_condition
- trailing_whitespace
analyzer_rules:
- unused_import
excluded:
- Carthage
- Pods
- DerivedData
- SwiftLint
#attributes:
# always_on_same_line:
# - "@IBSegueAction"
# - "@IBAction"
# - "@NSManaged"
# - "@objc"
force_cast: warning
force_try: warning
line_length:
warning: 250
error: 300
ignores_function_declarations: true
ignores_comments: true
ignores_urls: true
function_body_length:
warning: 300
error: 500
type_body_length:
warning: 600
error: 800
file_length:
warning: 1000
error: 1500
ignore_comment_only_lines: true
cyclomatic_complexity:
warning: 15
error: 25
nesting:
type_level:
warning: 3
error: 6
statement_level:
warning: 5
error: 10
reporter: "xcode"