Switches leadWorthy to severity; adds context to string user-matcher
This commit is contained in:
@@ -94,7 +94,10 @@ func matchXHR() URLMatcher {
|
||||
break
|
||||
}
|
||||
parent = candidate
|
||||
if parent.Type() == "function_declaration" {
|
||||
pt := parent.Type()
|
||||
if pt == "function_declaration" ||
|
||||
pt == "function" ||
|
||||
pt == "arrow_function" {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user