-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #12430: Resolve Pitest suppression for SeparatorWrapCheck
- Loading branch information
Showing
4 changed files
with
44 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...eckstyle/checks/whitespace/separatorwrap/InputSeparatorWrapForTestTrailingWhitespace.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
SeparatorWrap | ||
tokens = COMMA | ||
option = nl | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.whitespace.separatorwrap; | ||
|
||
public class InputSeparatorWrapForTestTrailingWhitespace { | ||
|
||
String s; | ||
|
||
// Trailing whitespace after ',' in variable declaration | ||
// violation below '',' should be on a new line.' | ||
int a, | ||
b; | ||
|
||
// Trailing whitespace after ',' in function arguments | ||
// violation below '',' should be on a new line.' | ||
public void foo(int a, | ||
int b) { | ||
int r | ||
, t; // OK | ||
} | ||
|
||
public void bar(int p | ||
, int q) { // OK | ||
} | ||
} |