parser

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPath = []string{"."}

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Rules   []*rule.Rule
	Ignorer *ignore.Ignore
	// contains filtered or unexported fields
}

Parser parses files and finds lines that break rules

func NewParser

func NewParser(rules []*rule.Rule, ignorer *ignore.Ignore) *Parser

func (*Parser) ParsePaths added in v0.1.1

func (p *Parser) ParsePaths(print printer.Printer, paths ...string) int

ParsePaths parses all files provided and returns the number of files with violations

Jump to

Keyboard shortcuts

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