-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
Javascript rule enhancement 1 (#232)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
exclusions: | ||
- id: Exclusions.Test | ||
name: Exclude test source code | ||
patterns: | ||
- "(.*/(test|spec)(s)?.*)|/Test[A-Z]|Test[.]" | ||
|
||
- id: Exclusions.JavaScript.Packages | ||
name: Exclude External JavaScript Packages | ||
patterns: | ||
- "(node_modules)/.*" | ||
|
||
- id: Exclusions.JavaScript.MinifiedFiles | ||
name: Exclude External JavaScript MinifiedFiles | ||
patterns: | ||
- ".*[.]min[.]js" | ||
|
||
- id: Exclusions.Empty | ||
name: Exclude file which cannot be read | ||
patterns: | ||
- "<empty>|<unknownFullName>" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
sinkSkipList: | ||
- id: SinkSkipList.ThirdParties | ||
name: Skip Third Party Sinks | ||
patterns: | ||
- "(HTMLAnchorElement|HTMLIFrameElement|HTMLElement).*" | ||
- "<operator>\\..*" | ||
- "JSON\\..*" | ||
- "Date.*" | ||
- "this.*" | ||
- "__Runtime\\..*" | ||
- "(?i)(Window|__ecma\\.|Document).*" | ||
|
||
- id: SinkSkipList.BuiltInLib | ||
name: Skip built in language libraries | ||
patterns: | ||
- "(?i)(bunyan|winston|moment|axios|gulp-|webpack-).*" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,37 @@ | ||
sinks: | ||
|
||
- id: Leakages.Log.Error | ||
name: Log Error | ||
patterns: | ||
- "(?i).*(?:console|logger|bunyan|winston|log4js|pino).*(?:error|severe|fatal)|process.stderr.*write" | ||
tags: | ||
|
||
- id: Leakages.Log.Warn | ||
name: Log Warn | ||
patterns: | ||
- "(?i).*(?:console|logger|bunyan|winston|log4js|pino).*(warn|warning)" | ||
tags: | ||
|
||
- id: Leakages.Log.Debug | ||
name: Log Debug | ||
patterns: | ||
- "(?i).*(?:console|logger|bunyan|winston|log4js|pino).*(debug|trace)|.*debuglog.*" | ||
tags: | ||
|
||
- id: Leakages.Log.Info | ||
name: Log Info | ||
patterns: | ||
- "(?i).*(?:console|logger|bunyan|winston|log4js|pino).*(info)" | ||
tags: | ||
|
||
- id: Leakages.Log.Console | ||
name: Log Console | ||
patterns: | ||
- "console.(?:log|error|info|warn|debug)" | ||
- "(?i).*(?:console|logger|bunyan|winston|log4js|pino).*(log)|process.stdout.*write" | ||
tags: | ||
|
||
- id: Leakages.Log.Log4js | ||
name: Log4js | ||
- id: Leakages.Log.Exception | ||
name: Log Exception | ||
patterns: | ||
- "log4js.(?:error|info|warn|debug)" | ||
tags: | ||
- "(?i).*(?:logger|bunyan|winston|log4js|pino).*(exception)" | ||
tags: |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ sinks: | |
domains: | ||
- "acumatica.com" | ||
patterns: | ||
- "@acumatica\\/jiraapi" | ||
- "acumsrc" | ||
tags: |
This file was deleted.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.