scanner

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	Filename          string
	OriginalContent   []byte
	RemediatedContent []byte
	Issues            []*issue.Issue
	EnabledChecks     []*checktypes.Check
	ParsedWorkflow    *workflowtypes.GitHubWorkflow
	JobNames          []string

	Results []evaluatetypes.EvaluateResult
}

func NewScanner

func NewScanner(filename string, content []byte) (*Scanner, error)

NewScanner returns an instance of the scanner for filename and content

func (*Scanner) EnableAllChecks

func (s *Scanner) EnableAllChecks()

func (*Scanner) EnableChecks added in v0.3.0

func (s *Scanner) EnableChecks(checks []*checktypes.Check)

func (Scanner) GetOutput

func (s Scanner) GetOutput() string

func (*Scanner) ScanWorkflow

func (s *Scanner) ScanWorkflow() error

Jump to

Keyboard shortcuts

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