Skip to content

Enhance CoverageQualityGateEvaluator to support maximum and average a…

86aeedd
Select commit
Loading
Failed to load commit list.
Open

Add support for maximum or average values in metrics #669

Enhance CoverageQualityGateEvaluator to support maximum and average a…
86aeedd
Select commit
Loading
Failed to load commit list.
ci.jenkins.io / CheckStyle failed Jan 31, 2026

3 new issues

Total New Outstanding Fixed Trend
3 3 0 0 👎

Reference build: Plugins » coverage-plugin » main #512

Details

Severity distribution of new issues

Error Warning High Warning Normal Warning Low
0 0 3 0

Annotations

Check warning on line 507 in plugin/src/test/java/io/jenkins/plugins/coverage/metrics/steps/CoverageQualityGateEvaluatorTest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / CheckStyle

JavadocMethodCheck

NORMAL:
@return tag should be present and have description.
Raw output
<p>Since Checkstyle 3.0</p><p> Checks the Javadoc of a method or constructor. By default, does not check for unused throws. To allow documented <code>java.lang.RuntimeException</code>s that are not declared, set property allowUndeclaredRTE to true. The scope to verify is specified using the <code>Scope</code> class and defaults to <code>Scope.PRIVATE</code>. To verify another scope, set property scope to a different <a href="property_types.html#scope">scope</a>. </p><p> Error messages about parameters and type parameters for which no param tags are present can be suppressed by defining property <code>allowMissingParamTags</code>. Error messages about exceptions which are declared to be thrown, but for which no throws tag is present can be suppressed by defining property <code>allowMissingThrowsTags</code>. Error messages about methods which return non-void but for which no return tag is present can be suppressed by defining property <code>allowMissingReturnTag</code>. </p><p> Javadoc is not required on a method that is tagged with the <code>@Override</code> annotation. However under Java 5 it is not possible to mark a method required for an interface (this was <i>corrected</i> under Java 6). Hence Checkstyle supports using the convention of using a single <code>{@inheritDoc}</code> tag instead of all the other tags. </p><p> Note that only inheritable items will allow the <code>{@inheritDoc}</code> tag to be used in place of comments. Static methods at all visibilities, private non-static methods and constructors are not inheritable. </p><p> For example, if the following method is implementing a method required by an interface, then the Javadoc could be done as: </p><pre> /** {@inheritDoc} */ public int checkReturnTag(final int aTagIndex, JavadocTag[] aTags, int aLineNo)</pre><p> The classpath may need to be configured to locate the class information. The classpath configuration is dependent on the mechanism used to invoke Checkstyle. </p>

Check warning on line 535 in plugin/src/test/java/io/jenkins/plugins/coverage/metrics/steps/CoverageQualityGateEvaluatorTest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / CheckStyle

JavadocMethodCheck

NORMAL:
@return tag should be present and have description.
Raw output
<p>Since Checkstyle 3.0</p><p> Checks the Javadoc of a method or constructor. By default, does not check for unused throws. To allow documented <code>java.lang.RuntimeException</code>s that are not declared, set property allowUndeclaredRTE to true. The scope to verify is specified using the <code>Scope</code> class and defaults to <code>Scope.PRIVATE</code>. To verify another scope, set property scope to a different <a href="property_types.html#scope">scope</a>. </p><p> Error messages about parameters and type parameters for which no param tags are present can be suppressed by defining property <code>allowMissingParamTags</code>. Error messages about exceptions which are declared to be thrown, but for which no throws tag is present can be suppressed by defining property <code>allowMissingThrowsTags</code>. Error messages about methods which return non-void but for which no return tag is present can be suppressed by defining property <code>allowMissingReturnTag</code>. </p><p> Javadoc is not required on a method that is tagged with the <code>@Override</code> annotation. However under Java 5 it is not possible to mark a method required for an interface (this was <i>corrected</i> under Java 6). Hence Checkstyle supports using the convention of using a single <code>{@inheritDoc}</code> tag instead of all the other tags. </p><p> Note that only inheritable items will allow the <code>{@inheritDoc}</code> tag to be used in place of comments. Static methods at all visibilities, private non-static methods and constructors are not inheritable. </p><p> For example, if the following method is implementing a method required by an interface, then the Javadoc could be done as: </p><pre> /** {@inheritDoc} */ public int checkReturnTag(final int aTagIndex, JavadocTag[] aTags, int aLineNo)</pre><p> The classpath may need to be configured to locate the class information. The classpath configuration is dependent on the mechanism used to invoke Checkstyle. </p>

Check warning on line 563 in plugin/src/test/java/io/jenkins/plugins/coverage/metrics/steps/CoverageQualityGateEvaluatorTest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / CheckStyle

JavadocMethodCheck

NORMAL:
@return tag should be present and have description.
Raw output
<p>Since Checkstyle 3.0</p><p> Checks the Javadoc of a method or constructor. By default, does not check for unused throws. To allow documented <code>java.lang.RuntimeException</code>s that are not declared, set property allowUndeclaredRTE to true. The scope to verify is specified using the <code>Scope</code> class and defaults to <code>Scope.PRIVATE</code>. To verify another scope, set property scope to a different <a href="property_types.html#scope">scope</a>. </p><p> Error messages about parameters and type parameters for which no param tags are present can be suppressed by defining property <code>allowMissingParamTags</code>. Error messages about exceptions which are declared to be thrown, but for which no throws tag is present can be suppressed by defining property <code>allowMissingThrowsTags</code>. Error messages about methods which return non-void but for which no return tag is present can be suppressed by defining property <code>allowMissingReturnTag</code>. </p><p> Javadoc is not required on a method that is tagged with the <code>@Override</code> annotation. However under Java 5 it is not possible to mark a method required for an interface (this was <i>corrected</i> under Java 6). Hence Checkstyle supports using the convention of using a single <code>{@inheritDoc}</code> tag instead of all the other tags. </p><p> Note that only inheritable items will allow the <code>{@inheritDoc}</code> tag to be used in place of comments. Static methods at all visibilities, private non-static methods and constructors are not inheritable. </p><p> For example, if the following method is implementing a method required by an interface, then the Javadoc could be done as: </p><pre> /** {@inheritDoc} */ public int checkReturnTag(final int aTagIndex, JavadocTag[] aTags, int aLineNo)</pre><p> The classpath may need to be configured to locate the class information. The classpath configuration is dependent on the mechanism used to invoke Checkstyle. </p>