grunt-jscomplexity-threshold

1.0.2 • Public • Published

grunt-jscomplexity-threshold

Build Status

This task is the grunt plugin port of jscomplexity module.

Usage

npm install grunt-jscomplexity-threshold --save-dev

Configuration

Tip : you can take a look at this repo's Gruntfile.js.

Example :

...

  'jscomplexity-threshold': {
  
    all : {
      src : [
        'app/**/*.js',
        'test/**/*.js',
        '!test/fixtures/**'
      ],
      options : {
        complexity : 10,        // default 100
        maintainability : 50,   // default 20
        lineNumber : 300        // default 4000
      }
    },
    
    ...
        
  }
  
  ...
      

Sample output

alt tag

Readme

Keywords

Package Sidebar

Install

npm i grunt-jscomplexity-threshold

Weekly Downloads

3

Version

1.0.2

License

none

Last publish

Collaborators

  • slyg