-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #6717: add support to RegexpMultiline to match across lines
- Loading branch information
Showing
5 changed files
with
125 additions
and
1 deletion.
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
18 changes: 18 additions & 0 deletions
18
.../tools/checkstyle/checks/regexp/regexpmultiline/InputRegexpMultilineMultilineSupport.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,18 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.regexp.regexpmultiline; | ||
|
||
/** | ||
* Config format = 'ABC.*DEF'(lowercased) | ||
* matchAcrossLines = true | ||
*/ | ||
public class InputRegexpMultilineMultilineSupport { | ||
void method() { | ||
// abc - violation | ||
// def | ||
// abc | ||
} | ||
|
||
void method2() { | ||
// def | ||
// abc | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...tools/checkstyle/checks/regexp/regexpmultiline/InputRegexpMultilineMultilineSupport2.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,18 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.regexp.regexpmultiline; | ||
|
||
/** | ||
* Config format = 'ABC.*?DEF'(lowercased) | ||
* matchAcrossLines = true | ||
*/ | ||
public class InputRegexpMultilineMultilineSupport2 { | ||
void method() { | ||
// abc - violation | ||
// def | ||
// abc - violation | ||
} | ||
|
||
void method2() { | ||
// def | ||
// abc | ||
} | ||
} |
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