File tree 3 files changed +11
-2
lines changed
Tests/StencilSwiftKitTests
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
opt_in_rules :
2
+ - anyobject_protocol
2
3
- array_init
3
4
- attributes
4
5
- closure_end_indentation
5
6
- closure_spacing
6
7
- contains_over_first_not_nil
8
+ - convenience_type
7
9
- discouraged_optional_boolean
8
10
- discouraged_optional_collection
9
11
- empty_count
10
12
- empty_string
13
+ - fallthrough
11
14
- fatal_error_message
12
15
- first_where
13
16
- force_unwrapping
14
17
- implicit_return
15
18
- implicitly_unwrapped_optional
16
19
- joined_default_parameter
17
20
- literal_expression_end_indentation
21
+ - lower_acl_than_parent
22
+ - modifier_order
18
23
- multiline_arguments
24
+ - multiline_function_chains
19
25
- multiline_parameters
26
+ - number_separator
27
+ - object_literal
20
28
- operator_usage_whitespace
21
29
- overridden_super_call
22
30
- override_in_extension
@@ -27,6 +35,7 @@ opt_in_rules:
27
35
- sorted_first_last
28
36
- sorted_imports
29
37
- trailing_closure
38
+ - unavailable_function
30
39
- unneeded_parentheses_in_closure_argument
31
40
- vertical_parameter_alignment_on_call
32
41
- yoda_condition
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ open class StencilSwiftTemplate: Template {
21
21
}
22
22
23
23
// swiftlint:disable:next discouraged_optional_collection
24
- open override func render( _ dictionary: [ String : Any ] ? = nil ) throws -> String {
24
+ override open func render( _ dictionary: [ String : Any ] ? = nil ) throws -> String {
25
25
return try removeExtraLines ( from: super. render ( dictionary) )
26
26
}
27
27
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ final class StringFiltersTests: XCTestCase {
29
29
return stringRepresentation. hashValue
30
30
}
31
31
32
- public static func == ( lhs: Input , rhs: Input ) -> Bool {
32
+ static func == ( lhs: Input , rhs: Input ) -> Bool {
33
33
return lhs. stringRepresentation == rhs. stringRepresentation
34
34
}
35
35
}
You can’t perform that action at this time.
0 commit comments