project

package
v0.19.80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LintConfiguration

type LintConfiguration struct {
	ConfPath string

	ContinueOnError bool
	ShowPasses      bool
	Languages       []linter.Language
	GitDiff         int
	SingleLang      string
	// contains filtered or unexported fields
}

LintConfiguration is what is required for an entire project to be linted

func (*LintConfiguration) CheckProjects

func (s *LintConfiguration) CheckProjects()

CheckProjects for missing files that should be included

func (*LintConfiguration) GetLanguage

func (s *LintConfiguration) GetLanguage(lang string) (linter.Language, error)

GetLanguage lets us query a language that might be in our projects configuration

func (*LintConfiguration) IsRepo

func (s *LintConfiguration) IsRepo() bool

IsRepo checks for a .git folder

func (*LintConfiguration) List

func (s *LintConfiguration) List()

List to print all languages chkConf fmt and always commands

func (*LintConfiguration) NoStandards

func (s *LintConfiguration) NoStandards()

NoStandards runs all fmt exec commands in languages and in always fmt

func (*LintConfiguration) Run

func (s *LintConfiguration) Run(lintType string) error

Run is the generic way to run everything based on the packages configuration

func (*LintConfiguration) SetLanguages

func (s *LintConfiguration) SetLanguages(l []linter.Language)

SetLanguages is used to load in implemented linters from other packages

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL