This document describes how metadata.json
should be structured.
Every active rule that is not a security hotspot must specify the availability of a quick fix for its issues.
metadata.json
must feature a quickfix
field with one of the following values:
-
unknown
: the feasibility of producing a quick fix is not evaluated. -
infeasible
: it is not feasible to propose a quick fix for any of the issues, for whatever reason. -
targeted
: it is possible to implement quick fixes for this rule, but none are implemented right now. -
partial
: some of the issues produced by the rule propose a quick fix, but not all. -
covered
: all the issues produced by the rule propose a quick fix.
ℹ️
|
A For instance, on one hand, if a rule detects two functions that are dangerous to use, On the other hand, if a quick fix could be easily proposed for both |
💡
|
You can update the quickfix field using this GitHub Workflow: https://github.com/SonarSource/rspec/actions/workflows/update_quickfix_status.yml |