codeclimate / codeclimate-grep

MIT License
2 stars 4 forks source link

Add option to change the type of regexp used #19

Closed pbrisbin closed 2 years ago

pbrisbin commented 2 years ago

Extends the configuration with a regexp key that supports fixed|basic|extended|perl as values. These map to the grep options that enable each kind of regexp. See Matcher Selection in grep(1) for more details. (I didn't realize the docs called this "Matcher" until just now, so maybe matcher would be a better name?)

The default is extended to maintain the behavior from before this change. I find that odd, since basic is grep's own default, but I don't think we can change it now.

Implements #18.

pbrisbin commented 2 years ago

/cc @filipesperandio @larkinscott

pbrisbin commented 2 years ago

Yeah, I'm sold on matcher. Will change.

pbrisbin commented 2 years ago

Docs LGTM (modulo the rename), thanks!