Subham-KRLX opened a new pull request, #2217: URL: https://github.com/apache/sedona/pull/2217
This PR adds a Checkstyle pre-commit hook to enforce Java code style automatically before commits. The hook runs mvn checkstyle:check on Java files to detect style violations. Since Spotless already handles Scala formatting, no changes have been made to Scala-related hooks. Currently, the codebase contains many legacy Checkstyle violations. This PR does not fix those violations but focuses solely on adding the enforcement mechanism to improve code quality for future commits. How was this patch tested? Locally tested by installing pre-commit hooks and running all hooks using pre-commit run --all-files. Verified that the Checkstyle hook runs and fails when violations exist, demonstrating enforcement. Confirmed all other hooks either pass or skip as expected. Did this PR include necessary documentation updates? No, this PR does not affect any public API and does not require documentation changes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
