Skip to content

💤 [Not maintained] Simple javascript complexity threshold task

License

Notifications You must be signed in to change notification settings

slyg/grunt-jscomplexity-threshold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 : {
        
        quiet : true,         // display report (see screenshot), default false
      
        complexity : 10,      // default 100, lower is better
        maintainability : 50, // default 20, higher is better
        lineNumber : 300      // default 4000, lower is better
        
      }
    },
    
    ...
  }
  ...
  

Sample output

alt tag

About

💤 [Not maintained] Simple javascript complexity threshold task

Resources

License

Stars

Watchers

Forks

Packages

No packages published