Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CmdLint ¶
type CmdLint struct {
// contains filtered or unexported fields
}
CmdLint is a lint command.
func NewCmdLint ¶
NewCmdLint creates a new CmdLint.
type CmdLintConfig ¶
type CmdLintConfig struct {
// contains filtered or unexported fields
}
CmdLintConfig is a config for lint command.
func NewCmdLintConfig ¶
func NewCmdLintConfig( externalConfig config.ExternalConfig, flags Flags, ) CmdLintConfig
NewCmdLintConfig creates a new CmdLintConfig.
type Flags ¶
type Flags struct { *flag.FlagSet FilePaths []string ConfigPath string ConfigDirPath string FixMode bool Reporter report.Reporter OutputFilePath string Verbose bool NoErrorOnUnmatchedPattern bool Plugins []shared.RuleSet }
Flags represents a set of lint flag parameters.
type ParseError ¶ added in v0.23.0
type ParseError struct {
Message string
}
ParseError represents the error returned through a parsing exception.
func (ParseError) Error ¶ added in v0.23.0
func (p ParseError) Error() string
Click to show internal directories.
Click to hide internal directories.