forked from opensearch-project/security
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix checkstyle (opensearch-project#3283)
Fix checkstyle. Now it works as expected. The problem is that chectyle works only with one config file. It does not support multiple files except per-defined files like `suppressions.xml`. So the previous config effectively replaced `sun_checks.xml` and validated only `System.out.println` lines in `tools`. Since `println_checks.xml` replaced the main file we did not notice that new version of checktyle removed `PrintlnModule` from the code base. Changes: - All code related to checking `tools` folder was moved in the main file - Renamed the `sun_...xml` file to the `checktyle.xml` which is default settings for checkstyle so we can track changes in it - Set the latest version for `checktyle` so it can validate new JDK features as well - Fixed problematic files which checkstyle highlighted `System.out.println` I tested manually all I can say it works :-) - [ ] New functionality includes testing - [ ] New functionality has been documented - [ ] Commits are signed per the DCO using --signoff By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check [here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin). Signed-off-by: Andrey Pleskach <ples@aiven.io> (cherry picked from commit cd45e78) Signed-off-by: Andrey Pleskach <ples@aiven.io>
- Loading branch information
1 parent
d8a30d4
commit 2bf955e
Showing
6 changed files
with
20 additions
and
33 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
This file was deleted.
Oops, something went wrong.
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
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