Skip to content

Implementing the vision of an autonomous bot to eliminate code smells through automatic refactoring.

License

Notifications You must be signed in to change notification settings

Simulant87/Refactoring-Bot

 
 

Repository files navigation

Refactoring-Bot

Build Status Sonarcloud Dashboard

Implementation of a bot that performs automatic refactorings based on the results of static code analysis or comments in pull requests. The changes are made available to the developers as pull requests for easy review.

Learn more about the bot and how to use it in the wiki.

Developer Usage Instructions

Before you can use the bot locally, the following steps need to be executed.

  1. The bot needs access to a MySQL DB instance to save its data. Use an existing one, download MySQL for your OS, or create a docker container via docker run --name refactoring-bot-db -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -d mysql:latest.
  2. In this MySQL instance, you need to create a schema with the name refactoringbot_db and make sure the user for the bot has access rights to this schema.
  3. Copy the configuration file src/main/resources/application_example.yml and rename it to src/main/resources/application.yml. In this new file, potentially change the datasource attributes depending on your MySQL instance.
  4. Execute the command mvn install to create the executable JAR file for the bot.
  5. Run the created JAR file via java -jar ./target/RefactoringBot-0.0.1-SNAPSHOT.jar. The API should now be available at http://localhost:8808 and the SwaggerUI will open in the browser.

About

Implementing the vision of an autonomous bot to eliminate code smells through automatic refactoring.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.7%
  • ANTLR 0.3%