Versions in this module Expand all Collapse all v0 v0.0.8 Jan 5, 2022 Changes in this version + const FORCE + const ToDoReference + var DocsReferenceMap = map[string]DocsReference + func LocationRangeToBKRange(locationRange LocationRange) parser.Range + func NewCmdCommand(str string, lineNumber int) (*instructions.CmdCommand, error) + func NewEntrypointCommand(str string, lineNumber int) (*instructions.EntrypointCommand, error) + func NewMaintainerCommand(str string) (*instructions.MaintainerCommand, error) + func NewRunCommand(cmd string, locationRange LocationRange) *instructions.RunCommand + func RegisterTestCaseDocs(string, interface{}) + func SortLocationRanges(locationRangeSlice []LocationRange) + type DocsReference string + type Location struct + func (location *Location) CharNumber() int + func (location *Location) LineNumber() int + func (location *Location) UnmarshalJSON(data []byte) error + func (location Location) MarshalJSON() ([]byte, error) + type LocationRange struct + func BKRangeSliceToLocationRange(parserRange []parser.Range) LocationRange + func LocationRangeFromCommand(command instructions.Command) LocationRange + func NewLocationFrom4Int(locationRange [4]int) LocationRange + func NewLocationFrom4IntSlice(locationRangeSlice [][4]int) []LocationRange + func NewLocationRange(startLine, startChar, endLine, endChar int) LocationRange + func ParseLocationFromRawParser(str string, window []parser.Range) LocationRange + func ParseLocationSliceFromRawParser(strSlice []string, window []parser.Range) []LocationRange + func UnionOfLocationRanges(locationRangeSlice []LocationRange) LocationRange + func (locationRange *LocationRange) End() *Location + func (locationRange *LocationRange) Start() *Location + func (locationRange *LocationRange) UnmarshalJSON(data []byte) error + func (locationRange LocationRange) MarshalJSON() ([]byte, error) + type Rule struct + func GetRulesForAstElement(astElementInterface interface{}) []Rule + func NewRule(id string, definition string, description string, severity Severity, ...) *Rule + func (rule *Rule) Definition() string + func (rule *Rule) Description() string + func (rule *Rule) DocsReference() DocsReference + func (rule *Rule) ID() string + func (rule *Rule) MarshalJSON() ([]byte, error) + func (rule *Rule) Severity() Severity + func (rule *Rule) UnmarshalJSON(data []byte) error + func (rule *Rule) Validate(param interface{}) RuleValidationResult + func (rule *Rule) ValidationFunc() interface{} + type RuleMapType map[string][]Rule + func Get() RuleMapType + func (ruleMap RuleMapType) Count() int + func (ruleMap RuleMapType) GetRuleByName(ruleName string, astElement interface{}) Rule + type RuleValidationResult struct + LocationRange LocationRange + func NewRuleValidationResult(rule *Rule, isViolated bool, message string, locationRange LocationRange) *RuleValidationResult + func ValidateCmd001(cmdCommand *instructions.CmdCommand) RuleValidationResult + func ValidateCpy001(copyCommand *instructions.CopyCommand) RuleValidationResult + func ValidateCpy002(copyCommand *instructions.CopyCommand) RuleValidationResult + func ValidateCpy003(copyCommand *instructions.CopyCommand) RuleValidationResult + func ValidateCpy004(copyCommand *instructions.CopyCommand) RuleValidationResult + func ValidateCpy005(copyCommand *instructions.CopyCommand) RuleValidationResult + func ValidateCpy006(stage instructions.Stage) RuleValidationResult + func ValidateEnt001(entrypointCommand *instructions.EntrypointCommand) RuleValidationResult + func ValidateExp001(exposeCommand *instructions.ExposeCommand) RuleValidationResult + func ValidateMtr001(maintainerCommand *instructions.MaintainerCommand) RuleValidationResult + func ValidateRun001(runCommand *instructions.RunCommand) RuleValidationResult + func ValidateRun002(runCommand *instructions.RunCommand) RuleValidationResult + func ValidateRun003(runCommand *instructions.RunCommand) RuleValidationResult + func ValidateRun004(runCommand *instructions.RunCommand) RuleValidationResult + func ValidateRun005(runCommand *instructions.RunCommand) RuleValidationResult + func ValidateRun006(runCommand *instructions.RunCommand) RuleValidationResult + func ValidateRun007(runCommand *instructions.RunCommand) RuleValidationResult + func ValidateRun008(runCommand *instructions.RunCommand) RuleValidationResult + func ValidateRun009(runCommand *instructions.RunCommand) RuleValidationResult + func ValidateRun010(runCommand *instructions.RunCommand) RuleValidationResult + func ValidateStl001(stageList []instructions.Stage) RuleValidationResult + func ValidateSts001(stage instructions.Stage) RuleValidationResult + func ValidateSts002(stage instructions.Stage) RuleValidationResult + func ValidateSts003(stage instructions.Stage) RuleValidationResult + func ValidateSts004(stage instructions.Stage) RuleValidationResult + func ValidateUsr001(stageList []instructions.Stage) RuleValidationResult + func ValidateWkd001(workdirCommand *instructions.WorkdirCommand) RuleValidationResult + func (ruleValidationResult *RuleValidationResult) Description() string + func (ruleValidationResult *RuleValidationResult) Location() *LocationRange + func (ruleValidationResult *RuleValidationResult) MarshalJSON() ([]byte, error) + func (ruleValidationResult *RuleValidationResult) Message() string + func (ruleValidationResult *RuleValidationResult) RuleID() string + func (ruleValidationResult *RuleValidationResult) SetLocation(startLineNumber, startCharNumber, endLineNumber, endCharNumber int) + func (ruleValidationResult *RuleValidationResult) SetLocationRangeFrom(locationRange LocationRange) + func (ruleValidationResult *RuleValidationResult) SetRule(rule *Rule) + func (ruleValidationResult *RuleValidationResult) SetViolated(params ...bool) + func (ruleValidationResult *RuleValidationResult) Severity() Severity + func (ruleValidationResult *RuleValidationResult) UnmarshalJSON(data []byte) error + func (ruleValidationResult RuleValidationResult) IsViolated() bool + type Severity int + const ValDeprecation + const ValError + const ValInfo + const ValUnknown + const ValWarning + func GetSeverityList() []Severity + func (severity *Severity) UnmarshalJSON(data []byte) error + func (severity Severity) MarshalJSON() ([]byte, error) + func (severity Severity) String() string