Closed harshsennnn closed 3 days ago
A new GitHub Actions workflow file named checkstyle.yml
has been introduced to automate Java code style checks using Checkstyle. This workflow triggers on pull requests targeting the main
or master
branches and checks any modified Java files. It consists of a job that checks out the code and runs the Checkstyle tool, configured to report results and fail if errors are detected. This implementation aims to maintain code quality by ensuring adherence to style guidelines before merging changes.
File | Change Summary |
---|---|
.github/workflows/checkstyle.yml | Added a new GitHub Actions workflow for Checkstyle code style checks on pull requests. |
Objective | Addressed | Explanation |
---|---|---|
Create a GitHub Actions workflow to run Checkstyle on pull requests. | ✅ | |
Configure the workflow to check code formatting for changed files only. | ✅ | |
Ensure that merging is blocked unless Checkstyle checks pass. | ✅ |
In the land of code where rabbits hop,
Checkstyle's here, we won't stop!
With every pull, we check and play,
Ensuring our code is bright and gay.
So hop along, let’s keep it neat,
For clean code is truly a treat! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@harshsennnn the checkstyle checks have to added to AMRIT API repositories as mentioned in the description and comments of the original issue. Closing this PR.
You can start with https://github.com/PSMRI/HWC-API If you have doubts, ping me on Discord, ID: drtechie.
Fixes #2
📋 Description
This PR addresses the issue raised in #2, where a GitHub Actions workflow for running Checkstyle on pull requests was needed. I have implemented the workflow to check Java code formatting using Checkstyle and integrated it with the pull request process. This change ensures that code formatting issues are detected and reported for any changed files in pull requests.
Since the issue was not assigned to me, I took the initiative to create this workflow to improve code quality by automatically checking for formatting violations.
Kindly assign the issue to me and review the pr
Summary by CodeRabbit
New Features
Chores