api

package
v0.18.16 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LintFileList

func LintFileList(l linter.Linter, fileList []string) error

LintFileList simply takes a single Linter and runs it for each file

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

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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