Skip to content

Commit 8bc14e5

Browse files
committed
fix: correct gitleaks config stopwords placement
1 parent 218d208 commit 8bc14e5

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

.gitleaks.toml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ regexes = [
5858
'''['"](dGVzdA==|ZGVtbw==|ZXhhbXBsZQ==)['"]''',
5959
]
6060

61+
stopwords = [
62+
"test",
63+
"demo",
64+
"example",
65+
"placeholder",
66+
"dummy",
67+
"fake",
68+
"mock",
69+
"sample",
70+
"template",
71+
"documentation",
72+
"tutorial",
73+
"guide"
74+
]
75+
6176
# Specific rules to customize
6277
[[rules]]
6378
id = "generic-api-key"
@@ -100,19 +115,3 @@ paths = [
100115
# Example: Allow specific commit that contains test data migration
101116
# "95f65c37dda67ee497aceb3246c323458d946160" = "Initial test data setup"
102117

103-
# Stop words that indicate test/demo content
104-
[allowlist.stopwords]
105-
stopwords = [
106-
"test",
107-
"demo",
108-
"example",
109-
"placeholder",
110-
"dummy",
111-
"fake",
112-
"mock",
113-
"sample",
114-
"template",
115-
"documentation",
116-
"tutorial",
117-
"guide"
118-
]

0 commit comments

Comments
 (0)