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
+6
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: