-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Issue #18556: updating multifileregexpheader and adding external xml … #18802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
9 changes: 1 addition & 8 deletions
9
...sources/com/puppycrawl/tools/checkstyle/checks/header/multifileregexpheader/Example2.java
This file contains hidden or 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 |
|---|---|---|
| @@ -1,16 +1,9 @@ | ||
| /*xml | ||
| <module name="Checker"> | ||
| <module name="MultiFileRegexpHeader"> | ||
| <property name="fileExtensions" value="java"/> | ||
| <property name="headerFiles" value="${config.folder}/java.header, | ||
| ${config.folder}/apache.header"/> | ||
| </module> | ||
| </module> | ||
| */ | ||
| // xdoc section -- start | ||
| package com.puppycrawl.tools.checkstyle.checks.header.multifileregexpheader; | ||
| /* violation on first line 'Header mismatch, expected line content was' */ | ||
| // because headerFile is bigger then target java file | ||
| public class Example2 { } | ||
| // xdoc section -- end | ||
| // violation 15 lines above 'Header mismatch, expected line content was' | ||
| // violation 8 lines above 'Header mismatch, expected line content was' |
11 changes: 11 additions & 0 deletions
11
...esources/com/puppycrawl/tools/checkstyle/checks/header/multifileregexpheader/Example2.xml
This file contains hidden or 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,11 @@ | ||
| <?xml version="1.0"?> | ||
| <!DOCTYPE module PUBLIC | ||
| "-//Puppy Crawl//DTD Check Configuration 1.3//EN" | ||
| "https://checkstyle.org/dtds/configuration_1_3.dtd"> | ||
| <module name="Checker"> | ||
| <module name="MultiFileRegexpHeader"> | ||
| <property name="fileExtensions" value="java"/> | ||
| <property name="headerFiles" value="${config.folder}/java.header, ${config.folder}/apache.header"/> | ||
| </module> | ||
| </module> | ||
|
|
9 changes: 1 addition & 8 deletions
9
...sources/com/puppycrawl/tools/checkstyle/checks/header/multifileregexpheader/Example3.java
This file contains hidden or 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 |
|---|---|---|
| @@ -1,15 +1,8 @@ | ||
| /*xml | ||
| <module name="Checker"> | ||
| <module name="MultiFileRegexpHeader"> | ||
| <property | ||
| name="headerFiles" value="${config.folder}/java.header, | ||
| ${config.folder}/apache.header"/> | ||
| </module> | ||
| </module> | ||
| */ | ||
| // xdoc section -- start | ||
| package com.puppycrawl.tools.checkstyle.checks.header.multifileregexpheader; | ||
| /* violation on first line 'Header mismatch, expected line content was' */ | ||
| public class Example3 { } | ||
| // xdoc section -- end | ||
| // violation 14 lines above 'Header mismatch, expected line content was' | ||
| // violation 7 lines above 'Header mismatch, expected line content was' | ||
10 changes: 10 additions & 0 deletions
10
...esources/com/puppycrawl/tools/checkstyle/checks/header/multifileregexpheader/Example3.xml
This file contains hidden or 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,10 @@ | ||
| <?xml version="1.0"?> | ||
| <!DOCTYPE module PUBLIC | ||
| "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | ||
| "https://checkstyle.org/dtds/configuration_1_3.dtd"> | ||
| <module name="Checker"> | ||
| <module name="MultiFileRegexpHeader"> | ||
| <property name="headerFiles" | ||
| value="${config.folder}/java.header, ${config.folder}/apache.header"/> | ||
| </module> | ||
| </module> |
7 changes: 0 additions & 7 deletions
7
...sources/com/puppycrawl/tools/checkstyle/checks/header/multifileregexpheader/Example4.java
This file contains hidden or 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
11 changes: 11 additions & 0 deletions
11
...esources/com/puppycrawl/tools/checkstyle/checks/header/multifileregexpheader/Example4.xml
This file contains hidden or 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,11 @@ | ||
| <?xml version="1.0"?> | ||
| <!DOCTYPE module PUBLIC | ||
| "-//Puppy Crawl//DTD Check Configuration 1.3//EN" | ||
| "https://checkstyle.org/dtds/configuration_1_3.dtd"> | ||
| <module name="Checker"> | ||
| <module name="MultiFileRegexpHeader"> | ||
| <property | ||
| name="headerFiles" | ||
| value="${config.folder}/universal.header"/> | ||
| </module> | ||
| </module> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.