Irina/sonarjava 4396#4317
Irina/sonarjava 4396#4317
Conversation
…ing from the cache. All steps before checks are passing.
95f4778 to
0cb2024
Compare
dorian-burihabwa-sonarsource
left a comment
There was a problem hiding this comment.
Thanks for the great work, I think there is some fine-tuning needed so that we align with the other analyzers but we are almost there
| if (!inputFile.status().equals(InputFile.Status.SAME)) { | ||
| LOG.trace("File status is: " + inputFile.status() + ". File can be skipped."); | ||
| contentHashCache.writeToCache(inputFile); | ||
| return false; | ||
| } | ||
| return canSkipInContext && inputFile.status() == InputFile.Status.SAME; | ||
| return contentHashCache.hasSameHashCached(inputFile); |
There was a problem hiding this comment.
It looks like we are taking a shortcut by checking the status before checking the cache. My understanding is that we should check the cache, and if the cache is disabled, check the status. WDYT?
dorian-burihabwa-sonarsource
left a comment
There was a problem hiding this comment.
Nice job on the fixes, I think that should be the last round of ping-pong. Feel free to test the logs in the ContehHashCacheTest tests if you feel it makes sense
dorian-burihabwa-sonarsource
left a comment
There was a problem hiding this comment.
LGTM 👍🏿
|
SonarQube Quality Gate
|





100.0% reviewed)

No description provided.