-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync checkstyle configuration with upstream (Checkstyle's own linting…
… configuration to run on itself) and split strict checkstyle profiles.
- Loading branch information
Showing
8 changed files
with
777 additions
and
293 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
~ Copyright 2024 Craig Motlin | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<!DOCTYPE suppressions PUBLIC | ||
"-//Puppy Crawl//DTD Suppressions 1.1//EN" | ||
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> | ||
|
||
<suppressions> | ||
|
||
<suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*" /> | ||
<suppress files="Bundle.java$" checks="AbstractClassName" /> | ||
<suppress files=".*" id="singleLineCommentStartWithSpace" /> | ||
|
||
</suppressions> |
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
82 changes: 82 additions & 0 deletions
82
...d-checkstyle/src/main/resources/checkstyle-configuration-liftwizard-formatting-strict.xml
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,82 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
~ Copyright 2024 Craig Motlin | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<!DOCTYPE module PUBLIC | ||
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | ||
"https://checkstyle.org/dtds/configuration_1_3.dtd"> | ||
|
||
<!-- Adapted from https://github.com/checkstyle/checkstyle/blob/master/config/checkstyle_checks.xml --> | ||
<module name="Checker"> | ||
<property name="severity" value="error" /> | ||
|
||
<!--region Filters--> | ||
<module name="SeverityMatchFilter"> | ||
<!-- report all violations except ignore --> | ||
<property name="severity" value="ignore" /> | ||
<property name="acceptOnMatch" value="false" /> | ||
</module> | ||
<!--endregion--> | ||
|
||
<!--region Miscellaneous--> | ||
<!--https://checkstyle.sourceforge.io/checks/misc/index.html--> | ||
<!--endregion--> | ||
|
||
<!--region Regexp--> | ||
<!--https://checkstyle.sourceforge.io/checks/regexp/index.html--> | ||
<module name="RegexpMultiline"> | ||
<property name="format" value="\{\n\n" /> | ||
<property name="message" value="First line after opening a scope may not be blank." /> | ||
</module> | ||
<module name="RegexpMultiline"> | ||
<property name="format" value="\n\n[ ]*\}" /> | ||
<property name="message" value="Last line before closing a scope may not be blank." /> | ||
</module> | ||
<!--endregion--> | ||
|
||
<!-- Whitespace --> | ||
<!--endregion--> | ||
|
||
<module name="TreeWalker"> | ||
<property name="tabWidth" value="4" /> | ||
|
||
<!--region Whitespace--> | ||
<!--https://checkstyle.sourceforge.io/checks/whitespace/index.html--> | ||
<module name="SingleSpaceSeparator"> | ||
<property name="validateComments" value="false" /> | ||
<property name="severity" value="warning" /> | ||
</module> | ||
|
||
<module name="MatchXpath"> | ||
<property name="id" value="singleLineCommentStartWithSpace" /> | ||
<property name="query" | ||
value="//SINGLE_LINE_COMMENT[./COMMENT_CONTENT[not(starts-with(@text, ' ')) | ||
and not(@text = '\n') and not(ends-with(@text, '//\n')) | ||
and not(@text = '\r') and not(ends-with(@text, '//\r')) | ||
and not(@text = '\r\n') and not(ends-with(@text, '//\r\n'))]]" /> | ||
<message key="matchxpath.match" value="Single line comment text should start with space." /> | ||
</module> | ||
<!--endregion--> | ||
|
||
<!--region Indentation--> | ||
<!--endregion--> | ||
|
||
<!--region Blocks--> | ||
<!--endregion--> | ||
|
||
</module> | ||
|
||
</module> |
Oops, something went wrong.