square/cane

--max-violations is ignored

Closed this issue · 2 comments

I found that --max-violations is being ignored whether I give is as a cli input or in a .cane file, for a single file (specified with -f) or for an entire project.

I'm simply running

cane --max-violations 222

Let me know if you need more details or an example file - it's just that the option is being ignored on anything I try.

Works for me, please do provide more details and reopen. Note that the output is exactly the same - this option only changes the return code. Include how you are validating the return code in your example.

Ha! The return code! Maybe it's worth mentioning in the readme (or change the behaviour)I expected no output - just as in the case of no violations.