[Add] new closure rule
This commit is contained in:
parent
5e4283a1ac
commit
24a338d1b7
|
|
@ -227,6 +227,12 @@ custom_rules:
|
|||
message: "Returning a boolean as true is redundant, and `!`-syntax is preferred over returning as false."
|
||||
severity: error
|
||||
|
||||
single_line_closure:
|
||||
name: "Single line closure"
|
||||
regex: '\{[^\n]+ in[^\n]+'
|
||||
message: "Make a new line after `in` in closure"
|
||||
severity: error
|
||||
|
||||
# Rx
|
||||
|
||||
unused_map_parameter:
|
||||
|
|
|
|||
Loading…
Reference in New Issue