sniff

package
v97.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RulesVersion = 11

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner interface {
	Scan(lager.Logger) bool
	Line(lager.Logger) *scanners.Line
	Err() error
}

type Sniffer

type Sniffer interface {
	Sniff(lager.Logger, Scanner, ViolationHandlerFunc) error
}

func NewDefaultSniffer

func NewDefaultSniffer() Sniffer

func NewSniffer

func NewSniffer(matcher, exclusionMatcher matchers.Matcher) Sniffer

type ViolationHandlerFunc

type ViolationHandlerFunc func(lager.Logger, scanners.Violation) error

Directories

Path Synopsis
matchersfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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