crie

package
v0.20.11 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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 Options added in v0.20.8

type Options struct {
	Continue      bool   `json:"continue" yaml:"continue"`
	Passes        bool   `json:"passes" yaml:"passes"`
	GitTarget     string `json:"gitTarget" yaml:"gitTarget"`
	GitDiff       bool   `json:"gitDiff" yaml:"gitDiff"`
	Only          string `json:"only" yaml:"only"`
	StrictLogging bool   `json:"-" yaml:"-"`
}

Options are the core flags and settings to change execution

type RunConfiguration

type RunConfiguration struct {
	Options   Options
	Ignore    *regexp.Regexp
	Languages Languages
	// 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