Package rife.bld.extension.pmd
Record Class PmdAnalysisResults
java.lang.Object
java.lang.Record
rife.bld.extension.pmd.PmdAnalysisResults
- Record Components:
violations- The number of violations found during the analysissuppressedViolations- The number of suppressed violations found during the analysiserrors- The number of errors returned during the analysisprocessingErrors- The number of processing errors returned during the analysisconfigurationErrors- The number of processing errors returning during the analysisrulesChecked- The number of rules checked during the analysis
public record PmdAnalysisResults(int violations, int suppressedViolations, int errors, int processingErrors, int configurationErrors, int rulesChecked)
extends Record
Represents the results of a PMD analysis, containing various counts
related to violations, errors, and rules.
- Since:
- 1.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionPmdAnalysisResults(int violations, int suppressedViolations, int errors, int processingErrors, int configurationErrors, int rulesChecked) Creates an instance of aPmdAnalysisResultsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theconfigurationErrorsrecord component.final booleanIndicates whether some other object is "equal to" this one.interrors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.booleanChecks if the analysis results indicate no errors of any type.booleanDetermines whether the analysis results indicate no violations of any type.intReturns the value of theprocessingErrorsrecord component.intReturns the value of therulesCheckedrecord component.intReturns the value of thesuppressedViolationsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theviolationsrecord component.
-
Constructor Details
-
PmdAnalysisResults
public PmdAnalysisResults(int violations, int suppressedViolations, int errors, int processingErrors, int configurationErrors, int rulesChecked) Creates an instance of aPmdAnalysisResultsrecord class.- Parameters:
violations- the value for theviolationsrecord componentsuppressedViolations- the value for thesuppressedViolationsrecord componenterrors- the value for theerrorsrecord componentprocessingErrors- the value for theprocessingErrorsrecord componentconfigurationErrors- the value for theconfigurationErrorsrecord componentrulesChecked- the value for therulesCheckedrecord component
-
-
Method Details
-
hasNoErrors
public boolean hasNoErrors()Checks if the analysis results indicate no errors of any type.- Returns:
trueif there are no errors,falseotherwise
-
hasNoViolations
public boolean hasNoViolations()Determines whether the analysis results indicate no violations of any type.- Returns:
trueif there are no violations,falseotherwise
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
violations
public int violations()Returns the value of theviolationsrecord component.- Returns:
- the value of the
violationsrecord component
-
suppressedViolations
public int suppressedViolations()Returns the value of thesuppressedViolationsrecord component.- Returns:
- the value of the
suppressedViolationsrecord component
-
errors
public int errors()Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-
processingErrors
public int processingErrors()Returns the value of theprocessingErrorsrecord component.- Returns:
- the value of the
processingErrorsrecord component
-
configurationErrors
public int configurationErrors()Returns the value of theconfigurationErrorsrecord component.- Returns:
- the value of the
configurationErrorsrecord component
-
rulesChecked
public int rulesChecked()Returns the value of therulesCheckedrecord component.- Returns:
- the value of the
rulesCheckedrecord component
-