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 aPmdAnalysisResults
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of theconfigurationErrors
record component.final boolean
Indicates whether some other object is "equal to" this one.int
errors()
Returns the value of theerrors
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Checks if the analysis results indicate no errors of any type.int
Returns the value of theprocessingErrors
record component.int
Returns the value of therulesChecked
record component.int
Returns the value of thesuppressedViolations
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of theviolations
record component.
-
Constructor Details
-
PmdAnalysisResults
public PmdAnalysisResults(int violations, int suppressedViolations, int errors, int processingErrors, int configurationErrors, int rulesChecked) Creates an instance of aPmdAnalysisResults
record class.- Parameters:
violations
- the value for theviolations
record componentsuppressedViolations
- the value for thesuppressedViolations
record componenterrors
- the value for theerrors
record componentprocessingErrors
- the value for theprocessingErrors
record componentconfigurationErrors
- the value for theconfigurationErrors
record componentrulesChecked
- the value for therulesChecked
record component
-
-
Method Details
-
hasNoErrors
public boolean hasNoErrors()Checks if the analysis results indicate no errors of any type.- Returns:
true
if there are no errors,false
otherwise.
-
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 theviolations
record component.- Returns:
- the value of the
violations
record component
-
suppressedViolations
public int suppressedViolations()Returns the value of thesuppressedViolations
record component.- Returns:
- the value of the
suppressedViolations
record component
-
errors
public int errors()Returns the value of theerrors
record component.- Returns:
- the value of the
errors
record component
-
processingErrors
public int processingErrors()Returns the value of theprocessingErrors
record component.- Returns:
- the value of the
processingErrors
record component
-
configurationErrors
public int configurationErrors()Returns the value of theconfigurationErrors
record component.- Returns:
- the value of the
configurationErrors
record component
-
rulesChecked
public int rulesChecked()Returns the value of therulesChecked
record component.- Returns:
- the value of the
rulesChecked
record component
-