Package org.ossreviewtoolkit.evaluator
Class OrtResultRule
-
- All Implemented Interfaces:
public class OrtResultRule extends Rule
A Rule to check an OrtResult.
-
-
Field Summary
Fields Modifier and Type Field Description private final OrtResultortResultprivate final Stringdescriptionprivate final List<RuleMatcher>matchersprivate final List<RuleViolation>violationsprivate final RuleSetruleSetprivate final Stringname
-
Constructor Summary
Constructors Constructor Description OrtResultRule(RuleSet ruleSet, String name)
-
Method Summary
Modifier and Type Method Description final OrtResultgetOrtResult()The OrtResult to check. StringgetDescription()Return a human-readable description of this rule. StringissueSource()Return a string to be used as Issue. final Unitissue(Severity severity, String message, String howToFix)final Unithint(String message, String howToFix)final Unitwarning(String message, String howToFix)final Uniterror(String message, String howToFix)-
Methods inherited from class org.ossreviewtoolkit.evaluator.Rule
error, evaluate, getMatchers, getName, getRuleSet, getViolations, hasLabel, hint, issue, require, runInternal, warning -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getOrtResult
final OrtResult getOrtResult()
The OrtResult to check.
-
getDescription
String getDescription()
Return a human-readable description of this rule.
-
issueSource
String issueSource()
-
-
-
-