Closed vzabawski closed 5 years ago
First requests gets all changes.
The following requests are looking for old comments. Old comments made by findings in previous analysis. With a previous report file where it they might have been mentioned.
Is there any way to change such behavior? Right now, those API calls take 90% of build time for some jobs.
I've tried to adjust plugin parameters, so current parameters look like:
Those adjustments allowed to decrease build time by ~30% but API calls part still takes a lot of time. So, is there any way to change this behavior? Thanks in advance.
If the createSingleFileComments
is false
, then I think it should be no problem avoiding these calls.
It can be achieved by enabling "Create one big comment with all violations" in UI, right?
Yes. This plugin just needs a change in the implementation first.
Just released a fix in version 1.99 now.
Violation plugin scans all files in pull request and tries to get information about them even if ther are not mentioned in report file:
Here's my plugin configuration:
This behavior slows down build process because build is not finished until all files are processed.
Even after I changed commentOnlyChangedContent to true, nothing changed and plugin keeps iteration over all files in pull request.
Info