* init

* more work

* more sarif work

* mergin
This commit is contained in:
Zachary Rice authored and GitHub committed 2020-08-12 18:07:24 -04:00
1 parent 01b553a75d
commit ef4655fcf1
7 files changed
+240 -50

No files matched your search

+2 -2
View File
@@ -58,7 +58,7 @@ func (repo *Repo) CheckRules(bundle *Bundle) {
start := time.Now()
// For each rule we want to check filename allowlists
if isAllowListed(filename, rule.Allowlist.Files) || isAllowListed(path, rule.Allowlist.Paths) {
if isAllowListed(filename, rule.AllowList.Files) || isAllowListed(path, rule.AllowList.Paths) {
continue
}
@@ -112,7 +112,7 @@ func (repo *Repo) CheckRules(bundle *Bundle) {
offender := bundle.Content[loc[0]:loc[1]]
groups := rule.Regex.FindStringSubmatch(offender)
if isAllowListed(line, append(rule.Allowlist.Regexes, repo.config.Allowlist.Regexes...)) {
if isAllowListed(line, append(rule.AllowList.Regexes, repo.config.Allowlist.Regexes...)) {
continue
}