[Add] new closure rule

This commit is contained in:
Vlad 2020-05-12 11:20:04 +03:00
parent 5e4283a1ac
commit 24a338d1b7
1 changed files with 6 additions and 0 deletions

View File

@ -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: