Code correction
This commit is contained in:
parent
55e29f68a6
commit
b022bfce95
|
|
@ -253,7 +253,7 @@ custom_rules:
|
||||||
|
|
||||||
parameter_closure:
|
parameter_closure:
|
||||||
name: "Parameter closure"
|
name: "Parameter closure"
|
||||||
regex: '\w*<\S*, Void\S*>'
|
regex: '\w*Closure<[^\r\n\t\f\v]*, Void[^\r\n\t\f\v]*>'
|
||||||
message: "Use `ParameterClosure` instead of declaring an explicit return value of `Void`."
|
message: "Use `ParameterClosure` instead of declaring an explicit return value of `Void`."
|
||||||
severity: error
|
severity: error
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue