
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
violation-reporter
Advanced tools
Generate a generic violation report from whatever tool you like and optionally generate a standard XML report.
var MultiReporter = require('violation-reporter')(grunt);
var XMLReporter = require('violation-reporter/tasks/XML')(grunt);
var checkstyleReporter = require('violation-reporter/tasks/checkstyleXML')(grunt, XMLReporter);
// create a new reporter and add checkstyle formatting
var reporter = new MultiReporter(files, options);
reporter.addReporter(checkstyleReporter);
// create a new violation, from whatever data you like
violations.push({
filepath: file,
line: 0,
column: 0,
name: key,
rule: key,
severity: severity,
message: 'Too many',
ratio: ratio,
value: metrics[key] + ' ('+ options.analyzecss[key] + ')'
});
// register the violation with the reporter
reporter.violations(file, violations);
Real-world examples can be found in (grunt-css-analysis) and (grunt-complexity-report)
Jenkins has plugins to report on violations from a number of standard tools. There are many tools that are used to generate errors and issues, in a huge range of formats. Violation-reporter is designed as a way to take this data and transform it into one of the available standards. Generally intended to be run from grunt or another build tool.
It currently only outputs to console, checkstyle and PMD format, but would be easy to extend to other XML formats.
npm install violation-reporter
Stuart Campbell (campbes)
Released under the MIT License
FAQs
Genrate violation reports in various formats
We found that violation-reporter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.