Skip to content

Commit 04eb266

Browse files
authored
Suppress AbbreviationAsWordInName for tests (#202)
* Create a test that triggers things * add a suppression rule that stops it. Fixes #201
1 parent 9b16609 commit 04eb266

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

checkstyle-config/src/main/resources/suppressions.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ limitations under the License.
2424
<!-- Suppress checks for generated code. -->
2525
<suppress files="[/\\]target[/\\]" checks=".+"/>
2626
<suppress files=".*AutoValue_.*\.java$" checks=".+"/>
27+
28+
<!-- Suppress AbbreviationAsWordInName for tests -->
29+
<suppress files=".*/src/test/java/.*\.java" checks="AbbreviationAsWordInName" />
2730
</suppressions>

test/src/test/java/com/google/cloud/samples/test/AppTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
@RunWith(JUnit4.class)
3232
public class AppTest {
33-
@Test public void main_printsHelloWorld() {
33+
@Test public void main_printsHelloWorldIT() {
3434
ByteArrayOutputStream out = new ByteArrayOutputStream();
3535
System.setOut(new PrintStream(out));
3636

0 commit comments

Comments
 (0)