Merge pull request #246 from TouchInstinct/feature/pattern_matching_rule
Feature - pattern matching rule
This commit is contained in:
commit
4a72255a79
|
|
@ -284,6 +284,12 @@ custom_rules:
|
||||||
message: "Use a local function instead of capture strong self"
|
message: "Use a local function instead of capture strong self"
|
||||||
severity: error
|
severity: error
|
||||||
|
|
||||||
|
pattern_matching:
|
||||||
|
name: "Pattern matching"
|
||||||
|
regex: 'case[^\n\(]+\([^\)]*(let|var)\s'
|
||||||
|
message: "Use a let|var keyword behind parentheses"
|
||||||
|
severity: warning
|
||||||
|
|
||||||
# Rx
|
# Rx
|
||||||
|
|
||||||
unused_map_parameter:
|
unused_map_parameter:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue