parser

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Rules   []*rule.Rule
	Ignorer *ignore.Ignore
}

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(paths ...string) (results []result.FileResults, err error)

ParsePaths parses all files provided and returns the results

Jump to

Keyboard shortcuts

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