// NewParser returns a pointer to a Parser that is used to check for violations
// based on the rules provided, ignoring files based on the ignorer provided
NewParser returns a pointer to a Parser that is used to check for violations
based on the rules provided, ignoring files based on the ignorer provided
// NewParser returns a pointer to a Parser that is used to check for violations // based on the rules provided ignoring files based on the ignorer provided
func NewParser(rules []*rule.Rule, ignorer *ignore.Ignore) *Parser {
	return &Parser{
		Rules:   rules,
		Ignorer: ignorer,
		rchan:   make(chan result.FileResults),
	}
}
func NewParser ( rules [ ] * rule . Rule , ignorer * ignore . Ignore ) * Parser { return & Parser { Rules : rules , Ignorer : ignorer , rchan : make ( chan result . FileResults ) , } }
NewParser returns a pointer to a Parser that is used to check for violations
based on the rules provided, ignoring files based on the ignorer provided
NewParser returns a pointer to a Parser that is used to check for violations based on the rules provided ignoring files based on the ignorer provided