Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Linter ¶
type Linter struct {
// contains filtered or unexported fields
}
func NewLinter ¶
func NewLinter(opts LinterOptions) (*Linter, error)
type LinterOptions ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func NewPlugin ¶
func NewPlugin(opts PluginOptions) (*Plugin, error)
func (*Plugin) Run ¶
Run lints protos and generates reports returns a boolean to indicate if problems were found only returns an error if it did indeed error return true, nil = all protos linted ok and no errors return false, nil = one or more problems found in one or more protos return false, err = we encountered an error preventing linting
type PluginOptions ¶
type PluginOptions struct { Linter LinterOptions ReportFilename string ReportPrettyPrint bool ExitOnError bool }
Click to show internal directories.
Click to hide internal directories.