
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
sarif-codeclimate
Advanced tools
COnvert your SARIF output into a readable JSON compatible with GitLab Code Climate Tool
This project aims to convert a SARIF output file from a linter to a CodeClimate output file. It could be use inside GitLab to display to the user the result of the linter inside the MR.
# npm
npm i -g sarif-codeclimate@latest
# yarn
yarn global add sarif-codeclimate@latest
You can update latest tag by a specific version tag
You can use this tool in two ways:
sarif-codeclimate --input <path to sarif file> --output <path to codeclimate file>
👉 You can also use the short version of the arguments -i
and -o
.
Output file is optional, if you don't specify it, the output will be printed in the console.
Here is an example of how to read a SARIF file and convert it to a CodeClimate file:
const parser = require('sarif-codeclimate/lib/parser');
const fs = require('fs');
//Read the content of a SARIF file
const sarifFile = fs.readFileSync('file.sarif', 'utf8');
// Return a object with a data that represent the JSON object and an error field
const { data, error } = parser(sarifFile);
if (error) {
console.error(error);
return;
} else {
fs.writeFileSync('codeclimate-result.json', JSON.stringify(data, null, 4));
}
Are you missing something or want to contribute? Feel free to open an issue or create a pull request
MIT
GridexX, a french DevOps working for R2DevOps
FAQs
Convert your SARIF output into a readable JSON compatible with GitLab Code Climate Tool
The npm package sarif-codeclimate receives a total of 5,457 weekly downloads. As such, sarif-codeclimate popularity was classified as popular.
We found that sarif-codeclimate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.