shell

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(script string) (*syntax.File, error)

Parse parses a shell script and returns a syntax tree

Types

type Analyzer

type Analyzer struct {
	// Custom rules to apply in addition to defaults
	CustomRules []rules.Rule
}

Analyzer represents a shell script analyzer

func NewAnalyzer

func NewAnalyzer() *Analyzer

NewAnalyzer creates a new shell script analyzer

func (*Analyzer) AddCustomRule

func (a *Analyzer) AddCustomRule(rule rules.Rule)

AddCustomRule adds a custom rule to the analyzer

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(workflow parser.WorkflowFile) []rules.Finding

Analyze analyzes shell commands in workflow steps

Jump to

Keyboard shortcuts

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