Merge pull request #246 from TouchInstinct/feature/pattern_matching_rule

Feature - pattern matching rule
This commit is contained in:
Loupehope 2021-02-11 18:41:48 +03:00 committed by GitHub
commit 4a72255a79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -284,6 +284,12 @@ custom_rules:
message: "Use a local function instead of capture strong self"
severity: error
pattern_matching:
name: "Pattern matching"
regex: 'case[^\n\(]+\([^\)]*(let|var)\s'
message: "Use a let|var keyword behind parentheses"
severity: warning
# Rx
unused_map_parameter: