forked from checkstyle/checkstyle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue checkstyle#4735: make RegexpHeaderCheck detect and enforce rege…
…x having '\n\n'
- Loading branch information
Vivek Rao
committed
Aug 2, 2017
1 parent
cf436f1
commit b7aa926
Showing
5 changed files
with
47 additions
and
2 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
13 changes: 13 additions & 0 deletions
13
...awl/tools/checkstyle/checks/header/regexpheader/InputRegexpHeaderConsecutiveNewLines.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,13 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// Test case file for checkstyle. | ||
/* */ | ||
// Created: 2017 | ||
//////////////////////////////////////////////////////////////////////////////// | ||
package com.puppycrawl.tools.checkstyle.checks.header.regexpheader; | ||
|
||
/** | ||
* @author Vivek Rao | ||
*/ | ||
public class InputRegexpHeaderConsecutiveNewLines | ||
{ | ||
} |
5 changes: 5 additions & 0 deletions
5
...m/puppycrawl/tools/checkstyle/checks/header/regexpheader/InputRegexpHeaderNewLines.header
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,5 @@ | ||
^/*$ | ||
// .* | ||
|
||
// Created: 2017 | ||
^.*$ |
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