config

package
v0.0.0-...-a95bb51 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NO_IMPORTS = Imports{
	Set: map[string]bool{},
}
View Source
var SupportedKinds = map[string]rule.KindInfo{
	constants.RULE_JS_LIBRARY: {
		MatchAny: false,
		NonEmptyAttrs: map[string]bool{
			constants.ATTR_SOURCES: true,
		},
		MergeableAttrs: map[string]bool{
			constants.ATTR_SOURCES: true,
			constants.ATTR_TAGS:    true,
		},
		ResolveAttrs: map[string]bool{
			constants.ATTR_DEPENDENCIES: true,
			constants.ATTR_DATA:         true,
		},
	},
	constants.RULE_JS_TEST: {
		MatchAny: false,
		NonEmptyAttrs: map[string]bool{
			constants.ATTR_ENTRY_POINT: true,
		},
		MergeableAttrs: map[string]bool{
			constants.ATTR_TAGS: true,
		},
		ResolveAttrs: map[string]bool{
			constants.ATTR_DEPENDENCIES: true,
			constants.ATTR_DATA:         true,
		},
	},
	constants.RULE_TS_PROJECT: {
		MatchAny: false,
		NonEmptyAttrs: map[string]bool{
			constants.ATTR_SOURCES: true,
		},
		MergeableAttrs: map[string]bool{
			constants.ATTR_SOURCES: true,
			constants.ATTR_TAGS:    true,
		},
		ResolveAttrs: map[string]bool{
			constants.ATTR_DEPENDENCIES: true,
			constants.ATTR_DATA:         true,
		},
	},
}

Map of maps rule names (kinds) and information on how to match and merge attributes that may be found in rules of those kinds. This extension will only generate rules of the kinds defined here.

Functions

This section is empty.

Types

type Imports

type Imports struct {
	Set map[string]bool
}

type WebConfig

type WebConfig struct {
	ExtensionEnabled bool
	Quiet            bool
	Verbose          bool
}

func NewWebConfig

func NewWebConfig() *WebConfig

func (*WebConfig) NewChild

func (parent *WebConfig) NewChild() *WebConfig

New configurations inherit desired values from the parent. It is best to copy maps to avoid mutating the parent.

type WebConfigs

type WebConfigs map[string]*WebConfig

func (*WebConfigs) ParentForPackage

func (webConfigs *WebConfigs) ParentForPackage(pkg string) *WebConfig

Jump to

Keyboard shortcuts

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