Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #12261: Resolve Pitest suppression for EmptyForIteratorPadCheck
- Loading branch information
1 parent
ba8efc2
commit dab7ef8
Showing
4 changed files
with
77 additions
and
18 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
28 changes: 28 additions & 0 deletions
28
...pace/emptyforiteratorpad/InputEmptyForIteratorPadToCheckTrimFunctionInOptionProperty.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,28 @@ | ||
/* | ||
EmptyForIteratorPad | ||
option = \tSPACE | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.whitespace.emptyforiteratorpad; | ||
|
||
class InputEmptyForIteratorPadToCheckTrimFunctionInOptionProperty { | ||
|
||
void method() { | ||
|
||
for (int i = 0; i < 1;i++ ) { | ||
} | ||
|
||
for (int i = 0; i < 1; i++ ) { | ||
} | ||
|
||
for (int i = 0; i < 1;) { // violation '';' is not followed by whitespace' | ||
i++; | ||
} | ||
|
||
for (int i = 0; i < 1; ) { // ok | ||
i++; | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...emptyforiteratorpad/InputEmptyForIteratorPadToCheckUppercaseFunctionInOptionProperty.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,28 @@ | ||
/* | ||
EmptyForIteratorPad | ||
option = space | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.whitespace.emptyforiteratorpad; | ||
|
||
public class InputEmptyForIteratorPadToCheckUppercaseFunctionInOptionProperty { | ||
|
||
void method() { | ||
|
||
for (int i = 0; i < 1;i++ ) { | ||
} | ||
|
||
for (int i = 0; i < 1; i++ ) { | ||
} | ||
|
||
for (int i = 0; i < 1;) { // violation '';' is not followed by whitespace' | ||
i++; | ||
} | ||
|
||
for (int i = 0; i < 1; ) { // ok | ||
i++; | ||
} | ||
} | ||
} |