violation-reporter
Advanced tools
Comparing version 0.0.0-alpha.1 to 0.0.0-alpha.2
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
36535
23
193
1
2