-
Notifications
You must be signed in to change notification settings - Fork 1
Docs_en
Gitplag is a system for analyzing the similarity of pull requests of a git repository.
Using this system, you can compare the contents of source code files that are in the pull requests of a repository, which is connected to Gitplag. Gitplag supports Github, Gitlab and Bitbucket repositories.
Files of each pull request are combined, after which they are compared with each other using code similarity analyzers. As a result, you can see the percentage of similarity of their code and see similar sections. Analysis results can also be seen in the graph representation.
Gitplag uses Moss and JPlag to analyze the similarity of code. It can also use both of them at once.
To start the system you need to run several docker containers, please follow these instructions.
To use Gitplag with a repository, its pull requests must be made from branches with the same name as the target branch of pull requests.
Gitplag can automatically download files from pull requests once they are updated. You can create a webhook in the repository settings of this git-service with the address [public URL of the server]/webhook/[git-service name], for example, http://0.0.0.0:8080/webhook/github, and with push and pull_request events.
API is available at /swagger-ui.html
.
- Run the system.
- Create a record of the repository.
- Launch the download of files from the repository.
- When the download is over, type the name of a branch and run the analysis.