Skip to content

Commit

Permalink
Increase code quality thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
dgroup committed Oct 14, 2024
1 parent 07fd531 commit 4504dc3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
13 changes: 6 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,12 @@
<jmh.version>1.37</jmh.version>
<jmh.suite.name>arch4u-pmd-benchmarks</jmh.suite.name>
<!-- Code quality -->
<!-- @todo #/DEV Increase quality thresholds once all tests are fixed -->
<code.cvrg.classes-without-tests>3</code.cvrg.classes-without-tests>
<code.cvrg.instructions>0.8</code.cvrg.instructions>
<code.cvrg.complexity>0.6</code.cvrg.complexity>
<code.cvrg.methods>0.7</code.cvrg.methods>
<code.cvrg.branch>0.6</code.cvrg.branch>
<code.cvrg.line>0.8</code.cvrg.line>
<code.cvrg.classes-without-tests>0</code.cvrg.classes-without-tests>
<code.cvrg.instructions>0.9</code.cvrg.instructions>
<code.cvrg.complexity>0.8</code.cvrg.complexity>
<code.cvrg.methods>0.9</code.cvrg.methods>
<code.cvrg.branch>0.8</code.cvrg.branch>
<code.cvrg.line>0.9</code.cvrg.line>
<sonar.projectKey>dgroup_arch4u-pmd</sonar.projectKey>
<sonar.organization>dgroup-github</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,12 @@
* Test case for {@code JUnitAssertionsShouldIncludeMessage} rule.
*
* @since 0.1.0
* @checkstyle MethodBodyCommentsCheck (100 lines)
* @checkstyle CommentsIndentationCheck (100 lines)
*/
@SuppressWarnings({"PMD.TestClassWithoutTestCases", "PMD.JUnit4TestShouldUseBeforeAnnotation"})
public final class JUnitAssertionsShouldIncludeMessageTest extends SimpleAggregatorTst {

@Override
public void setUp() {
// @todo #/DEV Implementation is needed
addRule(
"io/github/dgroup/arch4u/pmd/arch4u-ruleset.xml",
"JUnitAssertionsShouldIncludeMessage"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,11 @@
* Test case for {@link UseExistingConstant} rule.
*
* @since 0.1.0
* @checkstyle RegexpSinglelineCheck (100 lines)
* @checkstyle MethodBodyCommentsCheck (100 lines)
*/
@SuppressWarnings({"PMD.TestClassWithoutTestCases", "PMD.JUnit4TestShouldUseBeforeAnnotation"})
public final class UseExistingConstantTest extends SimpleAggregatorTst {
@Override
public void setUp() {
// @todo #/DEV Implementation is required
addRule("io/github/dgroup/arch4u/pmd/arch4u-ruleset.xml", "UseExistingMediaTypeConstant");
}
}

0 comments on commit 4504dc3

Please sign in to comment.