[Fix] regexp

This commit is contained in:
Vlad 2020-05-13 00:00:33 +03:00
parent b5a77c09d1
commit 49ff743f31
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ custom_rules:
single_line_closure:
name: "Single line closure"
regex: '(\{([^\n]*\[[^\]]+\][^\n]*)?([^\n]*[a-zA-Z]+(, (_|[a-zA-Z]+))*)? in)|(\{[^\n]+ in [^\n]+)'
regex: '(\{([^\n]*\[[^\]]+\][^\n]*)?([^\n]*[a-zA-Z]+(, (_|[a-zA-Z]+))*)? in )|(\{[^\n]+ in [^\n]+)'
message: "Make a new line after `in` keyword in closure"
severity: error