Skip to content

svetlitskiy/grunt-complexity-report

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

Run complexity-report against javascript source code from grunt build.

Code Example

grunt.loadNpmTasks('grunt-complexity-report');
 
grunt.initConfig({

  complexity : {
    js: {
      files : [{ cwd: '.', src: ['/**/*.js'], expand : true}],
      exclude: [],
      options: {
        pmdXML: '/pmd.xml'
      }
    }
  };
  
});

Motivation

This project is based on the excellent grunt-complexity from vigetlabs. Unfortunately there are some bugs/missing features that stopped me from using it and the project seems to have been abandoned.

This uses the same concepts, but adds the ability to break on different levels of severity, making it more useful as a reporting tool. It also treats maintainability as a similar error to complexity, enabling it to fit within a single report style.

It currently only outputs to console and PMD format, but would be easy to extend to other XML formats.

Installation

npm install grunt-complexity-report

Contributors

Stuart Campbell (campbes)

License

Released under the MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.1%
  • Smarty 8.9%