---
title: "filename-format"
description: "Allow only ASCII letters, digits, underscores, and hyphens in Go filenames."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# filename-format

**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

```go
// user.service.go
```

## Good

```go
// user_service.go
```

Source: https://strider.gempir.com/lints/filename-format/index.mdx
