Module: Moult::Formatters::GateMessage
- Defined in:
- lib/moult/formatters/gate_message.rb
Overview
The one-line description of a gate finding, shared by the GitHub-annotation and SARIF projections so the two render identical text. Stays humble: it reports the observed signal against the threshold, never a claim of certainty.
Class Method Summary collapse
Class Method Details
.for(rule, finding) ⇒ String
14 15 16 |
# File 'lib/moult/formatters/gate_message.rb', line 14 def for(rule, finding) "#{finding.category} #{finding.value} on changed code violates #{rule.rule} (threshold #{rule.threshold})" end |