vigetlabs / grunt-complexity

A JavaScript complexity analysis grunt task.
MIT License
221 stars 22 forks source link

Expose more options to check? #7

Open jsoverson opened 11 years ago

jsoverson commented 11 years ago

eg method length, file length.

Awesome task, by the way, thanks for putting it together. The colors and bar graphs are a great touch.

nhunzaker commented 11 years ago

Hey @jsoverson,

Good idea. Were you thinking more of a simple LoC count, or something more complicated?

jsoverson commented 11 years ago

Just checks against the complexity.sloc.physical or complexity.sloc.logical numbers that complexity-report gives back.

Checking against a per-file max and a per-function max should be similar to what is already being done, those numbers are already there to play with.