Fix check for number variables

This commit is contained in:
Vlad 2020-05-15 14:35:16 +03:00
parent a6a9e8a523
commit c5b08186d0
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]+'
regex: '\{([^\n]*\[[^\]]+\][^\n]*)?([^\n]*[a-zA-Z]\w*(, \w+)*)? in [^\n]+'
message: "Too complex expression for single line closure. Improve readability by making it multiline."
severity: error