cmd

package
v0.0.0-...-a36e8e9 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "0.0.24"
	GitCommit = "HEAD"
)

Functions

func Execute

func Execute() error

func ExtractQueryFromFile

func ExtractQueryFromFile(file string) (string, error)

func ParseCommentLine

func ParseCommentLine(line string) (key, value string)

Types

type Rule

type Rule struct {
	ID           string `json:"id"`
	Description  string `json:"description"`
	Impact       string `json:"impact"`
	Severity     string `json:"severity"`
	Passed       bool   `json:"passed" default:"true"`
	Query        string `json:"query"`
	RuleProvider string `json:"ruleProvider"`
}

func ParseQuery

func ParseQuery(query string) Rule

Jump to

Keyboard shortcuts

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