Skip to content

max-public-structs

Default severity: note

Limit exported structs per file.

type Request struct{}
type Response struct{}
type Client struct{}
type Server struct{}
type Options struct{}
type Result struct{}
type Request struct{}
type Response struct{}

The default maximum is five exported structs per file.

[checks.rules.max-public-structs]
max-public-structs = 8

Set max-public-structs = 0 to use the built-in maximum of five.