- To develop a CI tool that automatically checks the code quality of Java code in PR's, provide warnings for code style issues.
- The tool will be used as a preliminary code review, making it easier for reviewers to focus on more complex issues.
- will be using
Checkstylefor checking Java code against a set of coding standards and AI in Code Review
To test the bot, follow these steps:
- Clone the repository:
git clone https://github.com/Larsters/Code-Goblin
cd Code-Goblin- Create a new branch:
git checkout -b test-branch- Make changes to the code:
- Modify the
sample.javafile to introduce some code style issues. For example, you can remove the space between the method name and the opening parenthesis and see how the bot reacts.
- Commit and push:
git add Sample.java
git commit -m "Test code quality bot"
git push origin test-branch- Create a pull request:
- Go to Github repository
- Open a pull request from the
test-branchbranch to themainbranch
- Check the feedback: The bot will automatically check the code quality of the Java code in the PR and provide warnings for code style issues. You can see the feedback in the PR comments.
