forked from Provenance-Emu/Provenance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
93 lines (93 loc) · 2.31 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
disabled_rules:
- switch_case_alignment
- block_based_kvo
- multiple_closures_with_trailing_closure
- colon
- force_cast
- type_name
- discarded_notification_center_observer
- force_try
#- identifier_name_min_length
- identifier_name
- control_statement
- line_length
- type_body_length
- todo
- file_length
- cyclomatic_complexity
- unused_closure_parameter
# - trailing_newline
# - opening_brace
# - empty_count
# - comma
# - trailing_semicolon
# - function_body_length
- nesting
# - conditional_binding_cascade
# - variable_name_max_length
# - operator_whitespace
# - legacy_constant
# - return_arrow_whitespace
# - trailing_whitespace
# - closing_brace
# - statement_position
# - legacy_constructor
# - valid_docs
# - missing_docs
# - leading_whitespace
# - redundant_optional_initialization
# - unused_optional_initialization
# - unused_optional_binding
# - void_return
# - implicit_getter
# - mark
# - notification_center_detachment
# - for_where
# - vertical_whitespace
# - empty_parameters
# - class_delegate_protocol
# - syntactic_sugar
# - function_parameter_count
# - trailing_comma
# - weak_delegate
# - redundant_string_enum_value
# - unused_enumerated
# - empty_enum_arguments
# - shorthand_operator
# - empty_parentheses_with_trailing_closure
# - closure_parameter_position
# - redundant_discardable_let
# - large_tuple
# - vertical_parameter_alignment
# - compiler_protocol_init
# - private_over_fileprivate
excluded: # paths to ignore during linting. overridden byincluded.
- Carthage
- PVSupport/Carthage
- PVLibrary/Carthage
- Pods
- Cores
- Scripts
- fastlane
- build
- archive
# parameterized rules can be customized from this configuration file
line_length: 200
# parameterized rules are first parameterized as a warning level, then error level.
type_body_length:
- 300 # warning
- 400 # error
# parameterized rules are first parameterized as a warning level, then error level.
# identifier_name_max_length:
# - 40 # warning
# - 60 # error
# # parameterized rules are first parameterized as a warning level, then error level.
# identifier_name_min_length:
# - 3 # warning
# - 2 # error
function_body_length:
- 150 # warning
- 180 # error
large_tuple:
- 4 # warning
- 6 # error