codechecker
codechecker copied to clipboard
Changes the past on the Number of outstanding reports graph after storage
CodeChecker changes the past on the following scenario (introduce reports with same report hashes):
- Start a web server with the master branch.
- Analyze and store the following source file (it should find 2 reports ->
bugprone-sizeof-expressionandclang-diagnostic-unused-value):
int main() {
sizeof(42);
}
- Open the database and change the detection date manually 2 days earlier (this way it will be easier to see the problem).
- Suppress this report with a source code comment, reanalyze the code and store it again to the same run:
int main() {
// codechecker_suppress [bugprone-sizeof-expression] Test
sizeof(42);
}
-
Check the number of outstanding reports chart and it shows correct values:

-
Change the surce code and introduce a new finding with the same hash:
int main() {
// codechecker_suppress [bugprone-sizeof-expression] Test
sizeof(42);
sizeof(42);
}
- Analyze and store the results to the same run and check the chart again:
:exclamation: With this I changed the past. On the first screenshot we can see that on 5th of February I had 1 HIGH report but now I have two.