Merge pull request #189 from TouchInstinct/fix/single_line_closure_rule

Fix check for number variables
This commit is contained in:
Loupehope 2020-05-15 14:52:07 +03:00 committed by GitHub
commit 0bc3cb3360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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