-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.swiftlint.yml
More file actions
89 lines (85 loc) · 1.97 KB
/
.swiftlint.yml
File metadata and controls
89 lines (85 loc) · 1.97 KB
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
included:
excluded:
- Pods
- Cartography
- build
- Permanent/EnvVars.stencil
- Permanent/EnvVars.generated.swift
disabled_rules:
- duplicate_enum_cases
- empty_enum_arguments
- file_length
- force_cast
- force_try
- function_body_length
- inclusive_language
- large_tuple
- line_length
- multiple_closures_with_trailing_closure
- nesting
- private_over_fileprivate
- trailing_whitespace
- type_body_length
- unused_closure_parameter
- unused_enumerated
- void_return
opt_in_rules:
- closure_end_indentation
- closure_body_length
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_first_not_nil
- empty_collection_literal
- empty_count
- empty_string
- explicit_init
- file_types_order
- first_where
- flatmap_over_map_reduce
- indentation_width
- joined_default_parameter
- last_where
- literal_expression_end_indentation
- modifier_order
- multiline_arguments_brackets
- multiline_literal_brackets
- operator_usage_whitespace
- prefer_self_in_static_references
- prefer_self_type_over_type_of_self
- prefer_zero_over_explicit_init
- redundant_nil_coalescing
- sorted_first_last
- toggle_bool
- unused_declaration
- unused_import
- vertical_whitespace_between_cases
- vertical_whitespace_closing_braces
- vertical_whitespace_opening_braces
- yoda_condition
- file_header
identifier_name:
min_length:
warning: 2
error: 1
unused_declaration:
severity: warning
empty_count:
severity: warning
vertical_whitespace:
severity: error
vertical_whitespace_closing_braces:
severity: error
vertical_whitespace_opening_braces:
severity: error
closure_body_length:
warning: 80
error: 120
file_header:
severity: error
required_pattern: |
\/\/( *?)
\/\/.*?\.swift
\/\/( *?)(Permanent.*?)
\/\/( *?)
\/\/( *?)Created by .*? on .*?
\/\/( *?)