You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/11/08 18:51:53 UTC
[commons-numbers] 26/32: Suppress MethodName rule in checkstyle for
tests.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit a7066567b1b11f8ba337ecbe0303659adc13a946
Author: aherbert <ah...@apache.org>
AuthorDate: Fri Nov 8 17:57:00 2019 +0000
Suppress MethodName rule in checkstyle for tests.
---
.../test/java/org/apache/commons/numbers/primes/SmallPrimesTest.java | 2 --
src/main/resources/checkstyle/checkstyle-suppressions.xml | 1 +
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/commons-numbers-primes/src/test/java/org/apache/commons/numbers/primes/SmallPrimesTest.java b/commons-numbers-primes/src/test/java/org/apache/commons/numbers/primes/SmallPrimesTest.java
index 19263d5..4305109 100644
--- a/commons-numbers-primes/src/test/java/org/apache/commons/numbers/primes/SmallPrimesTest.java
+++ b/commons-numbers-primes/src/test/java/org/apache/commons/numbers/primes/SmallPrimesTest.java
@@ -26,8 +26,6 @@ import org.junit.jupiter.api.Test;
public class SmallPrimesTest {
- // CHECKSTYLE: stop MethodName
-
// Primes larger than the small PRIMES array in SmallPrimes
private static final int[] LARGE_PRIME = {3673, 3677};
diff --git a/src/main/resources/checkstyle/checkstyle-suppressions.xml b/src/main/resources/checkstyle/checkstyle-suppressions.xml
index 89acf69..9234fae 100644
--- a/src/main/resources/checkstyle/checkstyle-suppressions.xml
+++ b/src/main/resources/checkstyle/checkstyle-suppressions.xml
@@ -25,4 +25,5 @@
<suppress checks="DesignForExtension" files=".*[/\\]test[/\\].*" />
<suppress checks="LineLength" files=".*[/\\]test[/\\].*" />
<suppress checks="IllegalCatch" files=".*[/\\]test[/\\].*" />
+ <suppress checks="MethodName" files=".*[/\\]test[/\\].*" />
</suppressions>