0.0
The project is in a healthy, maintained state
Danger plugin for reporting SARIF file.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.0
>= 10.0
>= 3.4
>= 0.9.34

Runtime

 Project Readme

danger-sarif

Gem Version

Danger plugin for reporting SARIF file.

Installation

$ gem install danger-sarif

Usage

report from SARIF file

# Dangerfile
sarif.report 'app/build/reports/lint-results-debug.sarif'

report from multiple SARIF files

# Dangerfile
Dir['**/build/reports/lint-results-*.sarif'].each do |file|
  sarif.report file
end

Options

option description
sarif.fail_on_error Set the behavior that treating error as fail or not. default: true
# Dangerfile
sarif.fail_on_error false
sarif.report '...'

Development

  1. Clone this repo
  2. Run bundle install to setup dependencies.
  3. Make your changes.
  4. Run bundle exec rake spec to run the tests.