Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLanguageConfigFile ¶
NewLanguageConfigFile Creates the project file locally
func Schema ¶
func Schema() *jsonschema.Schema
Schema is used to generate a complete jsonschema for the Languages struct
Types ¶
type Language ¶
type Language struct {
Regex *Regex `` /* 193-byte string literal not displayed */
Fmt Linter `json:"fmt,omitempty" yaml:"fmt,omitempty" jsonschema_description:"used for the given language when formatting"`
Chk Linter `json:"chk,omitempty" yaml:"chk,omitempty" jsonschema_description:"used for the given language when linting/checking"`
}
Language is used to map customer yaml decoders for implementations of Crie linters
func (Language) ToCrieLanguage ¶
ToCrieLanguage will convert the yaml friendly version to an internal representation used by crie
type Languages ¶
type Languages struct {
Languages map[string]Language `json:"languages" yaml:"languages" jsonschema_description:"a map of languages that crie should be able to run"`
}
Languages is the schema for a projects' project file
type Linter ¶
Linter attaches a type discriminator field to make a Crie Linter implementation yaml parsable
func (Linter) JSONSchema ¶
func (l Linter) JSONSchema() *jsonschema.Schema
JSONSchema is used to parse a valid jsonschema just for a Linter
Click to show internal directories.
Click to hide internal directories.