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)
- Loading branch information