grunt-complexity
grunt-complexity copied to clipboard
How to get notices and warnings to work?
I was reviewing this commit: https://github.com/vigetlabs/grunt-complexity/commit/8625bd0bbe350087cb25f403c52aea56231006a5 and I couldn't figure out how it is intended to work.
If I set breakOnErrors
to true, the first level threshold of the array would always trigger a break. As in if I had it set as follows:
cyclomatic: [3, 10, 12],
And a file had a cyclomatic complexity of 3.1, it would trigger a failure. I thought it was supposed to trigger some kind of notice.
How exactly is this intended to work?
:+1: The exact same question came to my mind today.. Looking forward to some feedback. :)