Documentation
¶
Index ¶
- func LintFileList(l linter.Linter, fileList []string) error
- type ProjectLintConfiguration
- func (s *ProjectLintConfiguration) Chk() error
- func (s *ProjectLintConfiguration) GetLanguage(lang string) (linter.Language, error)
- func (s *ProjectLintConfiguration) List()
- func (s *ProjectLintConfiguration) NoStandards()
- func (s *ProjectLintConfiguration) Run() error
- func (s *ProjectLintConfiguration) SetLanguages(l []linter.Language)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProjectLintConfiguration ¶
type ProjectLintConfiguration struct {
IsRepo bool
ConfPath string
LintType string
ContinueOnError bool
Languages []linter.Language
GitDiff int
SingleLang string
// contains filtered or unexported fields
}
ProjectLintConfiguration is what is required for an entire project to be linted
func (*ProjectLintConfiguration) Chk ¶
func (s *ProjectLintConfiguration) Chk() error
Chk runs all Chk exec commands in languages and in always Chk
func (*ProjectLintConfiguration) GetLanguage ¶
func (s *ProjectLintConfiguration) GetLanguage(lang string) (linter.Language, error)
GetLanguage lets us query a language that might be in our projects configuration
func (*ProjectLintConfiguration) List ¶
func (s *ProjectLintConfiguration) List()
List to print all languages chkConf fmt and always commands
func (*ProjectLintConfiguration) NoStandards ¶
func (s *ProjectLintConfiguration) NoStandards()
NoStandards runs all fmt exec commands in languages and in always fmt
func (*ProjectLintConfiguration) Run ¶
func (s *ProjectLintConfiguration) Run() error
Run is the generic way to run everything based on the packages configuration
func (*ProjectLintConfiguration) SetLanguages ¶
func (s *ProjectLintConfiguration) SetLanguages(l []linter.Language)
SetLanguages is used to load in implemented linters from other packages
Click to show internal directories.
Click to hide internal directories.