Skip to content

Commit

Permalink
Update staging tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Deis authored and Nicholas Deis committed Nov 30, 2024
1 parent c362b91 commit e5c3980
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 2 deletions.
4 changes: 4 additions & 0 deletions staging/jsonc-flat.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ module.exports = [
},
rules: {
"no-secrets/no-secrets": "error",
"no-secrets/no-pattern-match": [
"error",
{ patterns: { SecretJS: /const SECRET/, SecretJSON: /\"SECRET\"/ } },
],
},
},
];
4 changes: 4 additions & 0 deletions staging/jsonc.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ module.exports = {
plugins: ["self"],
rules: {
"self/no-secrets": "error",
"self/no-pattern-match": [
"error",
{ patterns: { SecretJS: /const SECRET/, SecretJSON: /\"SECRET\"/ } },
],
},
};
4 changes: 4 additions & 0 deletions staging/mixed-flat.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ module.exports = [
},
rules: {
"no-secrets/no-secrets": "error",
"no-secrets/no-pattern-match": [
"error",
{ patterns: { SecretJS: /const SECRET/, SecretJSON: /\"SECRET\"/ } },
],
},
},
];
4 changes: 4 additions & 0 deletions staging/mixed.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ module.exports = {
plugins: ["self"],
rules: {
"self/no-secrets": "error",
"self/no-pattern-match": [
"error",
{ patterns: { SecretJS: /const SECRET/, SecretJSON: /\"SECRET\"/ } },
],
},
};
4 changes: 4 additions & 0 deletions staging/normal-flat.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ module.exports = {
},
rules: {
"no-secrets/no-secrets": "error",
"no-secrets/no-pattern-match": [
"error",
{ patterns: { SecretJS: /const SECRET/, SecretJSON: /\"SECRET\"/ } },
],
},
};
4 changes: 4 additions & 0 deletions staging/normal.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ module.exports = {
plugins: ["self"],
rules: {
"self/no-secrets": "error",
"self/no-pattern-match": [
"error",
{ patterns: { SecretJS: /const SECRET/, SecretJSON: /\"SECRET\"/ } },
],
},
};
4 changes: 2 additions & 2 deletions staging/staging.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const JSON_FILES = [
{
name: "Should detect secrets in json files",
file: "./staging/has-secret.json",
errorCount: 1,
errorCount: 2,
},
];

Expand All @@ -26,7 +26,7 @@ const JS_FILES = [
{
name: "Should detect secrets in json files",
file: "./staging/has-secret.js",
errorCount: 1,
errorCount: 2,
},
];

Expand Down

0 comments on commit e5c3980

Please sign in to comment.