Documentation ¶
Overview ¶
Package bufstyle defines lint analyzers that help enforce Buf's Go code standards.
Package bufstyle defines lint analyzers that help enforce Buf's Go code standards.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzerProvider ¶
AnalyzerProvider provides analyzers.
func NewAnalyzerProvider ¶
func NewAnalyzerProvider(rootDirPath string, options ...AnalyzerProviderOption) (AnalyzerProvider, error)
NewAnalyzerProvider returns a new AnalyzerProvider.
type AnalyzerProviderOption ¶
type AnalyzerProviderOption func(*analyzerProvider)
AnalyzerProviderOption is an option for a new AnalyzerProvider.
func WithIgnore ¶
func WithIgnore(analyzerName string, relFilePath string) AnalyzerProviderOption
WithIgnore will ignore diagnostics for the given file path and analyzer name.
relFilePath should be relative to rootDirPath.
type ExternalConfig ¶
type ExternalConfig struct { // Ignore is a map from analyzer name to a list of relative paths to ignore. Ignore map[string][]string `json:"ignore,omitempty" yaml:"ignore,omitempty"` }
ExternalConfig is an external configuration for bufstyle.
Click to show internal directories.
Click to hide internal directories.