Skip to content

Tags work funny on the GUI #3889

@Szelethus

Description

@Szelethus

Describe the bug
Observe the following inconsitencies:

// test1.cpp
#include "stdlib.h"

void a() {
  int i = 0;
  (void)(10 / i);
}

void b() {
  int *i = 0;
  *i = 5;
}

void c() {
  int i = 0;
  //
  i = 5;
}

// void d() {
//   int *k = new int;
//   (void)k;
// }

void e() {
  int *k = new int;
  // codechecker_suppress [all] SUPPRESS ALL
  free(k);
}

void f() {
  int *k = new int;
  delete k;
  *k = 5;
}

I'm analyzing this file into the results folder result1/ and store it into SingleRun with the tag tag1:

CodeChecker check -b "g++ -c test1.cpp" -o result1 --analyzers clangsa -c
CodeChecker store result1/ -n "SingleRun" --tag tag1 --url 0.0.0.0/5569

In the GUI, in the reports tab, after pressing "CLEAR ALL FILTERS", I see that I have 5 reports:
image

After choosing the tag under "Run / Tag Filter", I can only see 4:
image

Mind that the report that was suppressed via a source code comment is now missing. If I set a false positive review status rule for one of the reports, that one won't be missing, interestingly.

CodeChecker version

---------------------------------------------------------------
Kind                 | Version                                 
---------------------------------------------------------------
Base package version | 6.22.0                                  
Package build date   | 2023-04-18T10:11                        
Git commit ID (hash) | 0c86979fec4dbcc3b2aa24c766f9a08a28f78fcb
Git tag information  | 6.22                                    
---------------------------------------------------------------

[INFO 2023-04-19 15:13] - CodeChecker web version:
------------------------------------------------------------------------------
Kind                                | Version                                 
------------------------------------------------------------------------------
Base package version                | 6.22.0                                  
Package build date                  | 2023-04-18T10:11                        
Git commit ID (hash)                | 0c86979fec4dbcc3b2aa24c766f9a08a28f78fcb
Git tag information                 | 6.22                                    
Server supported Thrift API version | 6.53                                    
Client Thrift API version           | 6.53                                    
------------------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLI 💻Related to the command-line interface, such as the cmd, store, etc. commandsbug 🐛server 🖥️

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions