Skip to content

Commit

Permalink
feat: eliminate some false positives in no-secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
danielc92 committed Oct 4, 2023
1 parent 193fb5a commit 70f33ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ module.exports = {
'import/exports-last': 'warn',

// SECURITY: SECRETS (ZERO TOLERANCE)
'no-secrets/no-secrets': 'error',
'no-secrets/no-secrets': ["error",{
// ignore entropy of <4
"tolerance":4,
// ignore uuid patterns
"ignoreContent": "^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"
}],

// CODE QUALITY: SONARJS (ZERO TOLERANCE)
'sonarjs/cognitive-complexity': 'error',
Expand Down

0 comments on commit 70f33ce

Please sign in to comment.