Skip to content

filename-format

Allow only ASCII letters, digits, underscores, and hyphens in Go filenames.

Updated View as Markdown

Default severity: note

Reports .go filenames containing characters outside ASCII letters, digits, underscores, and hyphens. The filename must start with one of those characters and end in .go; dots within the stem, spaces, and other punctuation are rejected. It does not enforce snake_case or lowercase names.

Bad

// user.service.go

Good

// user_service.go
Navigation

Type to search…

↑↓ navigate↵ selectEsc close