-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftlint.yml
More file actions
85 lines (76 loc) · 1.82 KB
/
.swiftlint.yml
File metadata and controls
85 lines (76 loc) · 1.82 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
disabled_rules:
- identifier_name
- type_name
- notification_center_detachment
- class_delegate_protocol
- type_body_length
- cyclomatic_complexity
- empty_enum_arguments
- nesting
- large_tuple
- void_function_in_ternary
- blanket_disable_command
- non_optional_string_data_conversion
opt_in_rules:
- multiline_parameters
- multiline_parameters_brackets
- multiline_arguments
- multiline_arguments_brackets
- closure_end_indentation
- closure_spacing
- collection_alignment
- contains_over_first_not_nil
- discouraged_object_literal
- empty_xctest_method
- explicit_init
- first_where
- force_unwrapping
- identical_operands
- joined_default_parameter
- last_where
- legacy_random
- literal_expression_end_indentation
- multiline_literal_brackets
- operator_usage_whitespace
- prohibited_interface_builder
- redundant_type_annotation
- sorted_first_last
- toggle_bool
- unneeded_parentheses_in_closure_argument
- vertical_parameter_alignment_on_call
- yoda_condition
- implicitly_unwrapped_optional
- file_name
- fatal_error_message
- anonymous_argument_in_multiline_closure
custom_rules:
rus_characters:
name: "Russian characters"
regex: '([А-я]+)'
match_kinds:
- identifier
- parameter
message: "Do not use russian characters in identifiers or parameters"
severity: error
force_casting:
name: "Force casting"
regex: '\bas!\s+\w+'
message: "Avoid force casting types"
severity: warning
excluded:
- Pods
analyzer_rules:
- unused_declaration
function_parameter_count:
warning: 5
error: 6
file_length:
warning: 400
error: 1200
ignore_comment_only_lines: true
line_length:
warning: 120
ignores_function_declarations: false
ignores_comments: true
ignores_urls: true
function_body_length: 80