@microsoft/eslint-formatter-sarif
ESLint formatter for the SARIF (Static Analysis Results Interchange Format) v2.1.0 file format
Last updated 3 months ago by larrygolding .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @microsoft/eslint-formatter-sarif 
SYNC missed versions from official npm registry.

SARIF formatter for ESLint

eslint-formatter-sarif is a formatter for ESLint that produces output in the SARIF (Static Analysis Results Interchange Format) v2.1.0 format.

It is available as an npm module @microsoft/eslint-formatter-sarif.

Installation and usage

  1. To install ESLint, follow the instructions at Getting Started with ESLint.

  2. To install the ESLint SARIF formatter:

    npm install @microsoft/eslint-formatter-sarif --save-dev
    
  3. To run ESLint with the SARIF formatter:

    ./node-modules/.bin/eslint -f @microsoft/eslint-formatter-sarif -o yourfile.sarif yourfile.js
    

Note that you cannot use the abbreviated form -f sarif, because that only works when the npm module name is of the form eslint-formatter-example, and the ESLint SARIF formatter module is not eslint-formatter-sarif; it's @microsoft/eslint-formatter-sarif.

Developer details

To embed the contents of the analyzed source files in the resulting SARIF file:

set SARIF_ESLINT_EMBED=true

To disable content embedding:

set SARIF_ESLINT_EMBED=

To run unit tests:

RunTests.cmd

Current Tags

  • 2.1.5                                ...           latest (3 months ago)

5 Versions

  • 2.1.5                                ...           3 months ago
  • 2.1.3                                ...           8 months ago
  • 2.1.2                                ...           a year ago
  • 2.1.1                                ...           a year ago
  • 2.1.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |