crie

package
v0.20.7 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MIT Imports: 16 Imported by: 0

README

Crie

The crie package is the core runtime that orchestrates the execution of linters

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(list []string, expect bool, f func(string) bool) []string

Filter Filters

func IsEmpty

func IsEmpty(name string) (bool, error)

IsEmpty IsEmpty

Types

type Languages added in v0.20.2

type Languages map[string]*linter.Language

Languages store the name to a singular language configuration within crie

type RunConfiguration

type RunConfiguration struct {
	ContinueOnError bool
	StrictLogging   bool
	ShowPasses      bool
	Ignore          *regexp.Regexp
	Languages       Languages
	GitDiff         bool
	GitTarget       string
	SingleLang      string
	// contains filtered or unexported fields
}

RunConfiguration is the entire working set of information to process a project

func (*RunConfiguration) GetLanguage

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

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

func (*RunConfiguration) IsRepo

func (s *RunConfiguration) IsRepo(path string) bool

IsRepo checks for a .git folder

func (*RunConfiguration) List

func (s *RunConfiguration) List()

List to print all languages chkConf fmt and always commands

func (*RunConfiguration) NoStandards

func (s *RunConfiguration) NoStandards()

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

func (*RunConfiguration) Run

func (s *RunConfiguration) Run(lintType string) (err error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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