-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
90 lines (84 loc) · 1.87 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
disabled_rules:
- type_name
- cyclomatic_complexity
- function_body_length
- function_parameter_count
- large_tuple
- identifier_name
- nesting
- todo
- type_body_length
- block_based_kvo
- private_over_fileprivate
- notification_center_detachment
- trailing_comma
- fatal_error_message
- unavailable_function
- nimble_operator
- implicit_getter
- valid_ibinspectable
- trailing_whitespace
- closure_parameter_position
- inclusive_language
- array_init
- multiple_closures_with_trailing_closure
opt_in_rules:
- array_init
- contains_over_first_not_nil
- empty_string
- empty_xctest_method
- fallthrough
- function_default_parameter_at_end
- joined_default_parameter
- multiline_parameters
- private_outlet
- overridden_super_call
- pattern_matching_keywords
- quick_discouraged_call
- quick_discouraged_focused_test
- quick_discouraged_pending_test
- redundant_nil_coalescing
- required_enum_case
- single_test_class
- sorted_first_last
- yoda_condition
- closure_parameter_position
file_length:
warning: 800
error: 1300
line_length:
error: 160
warning: 140
ignores_comments: true
ignores_urls: true
force_cast: warning
force_try: warning
reporter: "xcode"
warning_threshold: 1000
custom_rules:
no_print:
name: "Disallow Print Statements"
regex: "print\\("
message: "Don't use print statements in the code."
severity: warning
russian_c_symbol:
name: "No more russian C in names"
regex: "[сС]+"
message: "Russian С found"
match_kinds:
- typeidentifier
- identifier
severity: error
russian_e_symbol:
name: "No more russian E in names"
regex: "[еЕ]+"
message: "Russian E found"
match_kinds:
- typeidentifier
- identifier
severity: error
enforce_final_classes:
name: "Enforce Final Classes"
regex: "(?<!final\\s)class\\s"
message: "Classes should be declared as final."
severity: warning