Documentation
¶
Overview ¶
Package rulemode defines the tool configuration options that affect rules.
Index ¶
- Variables
- func Compliance(ruleModes map[Type]bool) string
- func ComplianceModeFromString(complianceModeString string) (bool, bool, bool, error)
- func LibraryManager(ruleModes map[Type]bool) string
- func LibraryManagerModeFromString(libraryManagerModeString string) (bool, bool, bool, error)
- func Modes(defaultRuleModes map[projecttype.Type]map[Type]bool, ...) map[Type]bool
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var Types = map[Type]struct{}{ Strict: empty, Specification: empty, Permissive: empty, LibraryManagerSubmission: empty, LibraryManagerIndexed: empty, LibraryManagerIndexing: empty, Official: empty, Default: empty, }
Types provides an iterator and validator for Type.
Functions ¶
func Compliance ¶
Compliance returns the tool configuration's compliance setting name.
func ComplianceModeFromString ¶
ComplianceModeFromString parses the --compliance flag value and returns the corresponding rule mode settings.
func LibraryManager ¶
LibraryManager returns the string identifier for the Library Manager configuration mode.
func LibraryManagerModeFromString ¶
LibraryManagerModeFromString parses the --library-manager flag value and returns the corresponding rule mode settings.
Types ¶
Click to show internal directories.
Click to hide internal directories.