grunt-complexity icon indicating copy to clipboard operation
grunt-complexity copied to clipboard

How to get notices and warnings to work?

Open michikono opened this issue 10 years ago • 1 comments

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?

michikono avatar May 01 '14 00:05 michikono

:+1: The exact same question came to my mind today.. Looking forward to some feedback. :)

davidlinse avatar Jun 12 '14 19:06 davidlinse