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

violation-reporter

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

violation-reporter - npm Package Compare versions

Comparing version 0.0.0-alpha.1 to 0.0.0-alpha.2

tasks/CheckstyleXML/ending.xml_

14

package.json
{
"name": "violation-reporter",
"version": "0.0.0-alpha.1",
"version": "0.0.0-alpha.2",
"description": "Genrate violation reports in various formats",

@@ -12,3 +12,3 @@ "author": {

"type": "git",
"url": "https://github.com/campbes/violation-reporter"
"url": "git+https://github.com/campbes/violation-reporter.git"
},

@@ -24,3 +24,3 @@ "bugs": {

],
"readmeFilename": "readme.md",
"readmeFilename": "README.md",
"dependencies": {

@@ -32,3 +32,9 @@ "fs-extra": "^0.23.0"

"grunt-contrib-jshint": "^0.11.2"
}
},
"readme": "## Synopsis\n\nRun complexity-report against javascript source code from grunt build.\n\n## Code Example\n\n grunt.loadNpmTasks('grunt-complexity-report');\n \n grunt.initConfig({\n \n complexity : {\n js: {\n files : [{ cwd: '.', src: ['/**/*.js'], expand : true}],\n exclude: [],\n options: {\n pmdXML: '/pmd.xml',\n teamcity: true //send buildStatisticValue to TeamCity\n }\n }\n };\n \n });\n\n## Motivation\n\nThis project is based on the excellent [grunt-complexity](https://github.com/vigetlabs/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.\n\nThis 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.\n\nIt currently only outputs to console and PMD format, but would be easy to extend to other XML formats.\n\n## Installation\n\nnpm install grunt-complexity-report\n\n## Contributors\n\nStuart Campbell ([campbes](https://github.com/campbes))\n\n## License\n\nReleased under the [MIT License](http://opensource.org/licenses/MIT)\n",
"homepage": "https://github.com/campbes/violation-reporter#readme",
"_id": "violation-reporter@0.0.0-alpha.1",
"scripts": {},
"_shasum": "8b05104711cf7cd0418af3530363ce063fab47fa",
"_from": "violation-reporter@*"
}
module.exports = function() {
var MultiReporter = function(filenames, options) {
options.templates = options.templates || {};
this.filenames = filenames;

@@ -17,2 +18,5 @@ this.options = options;

this.reporters.forEach(function(reporter) {
if(!reporter[methodName]) {
return;
}
reporter[methodName].apply(reporter, argumentsArray);

@@ -19,0 +23,0 @@ });

Sorry, the diff of this file is not supported yet

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