api

package
v0.18.35 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: MIT Imports: 19 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 Par added in v0.18.34

type Par []string

Par represents cli parameters

type ProjectLintConfiguration

type ProjectLintConfiguration struct {
	ConfPath string

	ContinueOnError bool
	ShowPasses      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) CheckProjects added in v0.18.34

func (s *ProjectLintConfiguration) CheckProjects()

CheckProjects for missing files that should be included

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) IsRepo

func (s *ProjectLintConfiguration) IsRepo() bool

IsRepo checks for a .git folder

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(lintType string) 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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