Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-complexity-report

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-complexity-report

Run complexity-report during grunt build

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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',
        teamcity: true  //send buildStatisticValue to TeamCity
      }
    }
  };
  
});

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

Keywords

FAQs

Package last updated on 06 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc