Skip to content

Commit 00f8b5f

Browse files
TMHSDigitalclaude
andcommitted
chore(wordlist-gen): silence G302 for the wordlist file mode
The wordlist is world-readable on purpose, like the os.Create it replaced in 22c4211. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 22c4211 commit 00f8b5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/wordlist-gen.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func run(args []string, stdout, stderr io.Writer) int {
177177
if !*force {
178178
flags |= os.O_EXCL // never silently replace an existing wordlist (#59)
179179
}
180-
file, err := os.OpenFile(*outputFile, flags, 0o644)
180+
file, err := os.OpenFile(*outputFile, flags, 0o644) //nolint:gosec // a generated wordlist is not sensitive; same mode os.Create gives
181181
if errors.Is(err, os.ErrExist) {
182182
fmt.Fprintf(stderr, "Error: %s already exists; pass -f to overwrite it or -o to choose another path\n", *outputFile)
183183
return 1

0 commit comments

Comments
 (0)