C++: Total number of baseline files limit
- Lenguaje dominante
- CodeQL
- Estrellas
- 10.1k
- Forks
- 2.1k
- Merge medio
- 2 d 15 h
- PR fusionados (30 d)
- 141
Descripción
Hey friends, I have quite a large C++ database:
```
codeql database print-baseline -- ${CODEQL_DATABASE_DIR}
Counted a baseline of 27711380 lines of code for cpp.
```
Before running scans, I normally run some simple diagnostic queries to make sure the database looks fine. The queries look for things like:
* Files
* `FunctionCall`s
* `IfStmt`s
When I run these queries on this large database, I get this
```
codeql database analyze ${CODEQL_DATABASE_DIR} --format=sarif-latest --output=calls.sarif ${CODEQL_QUERIES}/qlpacks/cpp-queries/diagnostics/FunctionCalls.ql
Running queries.
[1/1 comp 7.8s] Compiled [...]/qlpacks/cpp-queries/diagnostics/FunctionCalls.ql.
Files.ql: [1/1 eval 36s] Results written to cpp-queries/diagnostics/FunctionCalls.bqrs.
Shutting down query evaluator.
Interpreting results.
Will not interpret file coverage baseline information, since the total number of baseline files is 153738, which is greater than the limit of 50000.
```
The exit code is 0 but `calls.sarif` is empty.
When I run queries from the standard C++ pack, I get the same message.
What does this limit mean? Is there any way to increase it? I didn't find anything either in the docs or in this repo unfortunately, may be missing something though. Thanks!
Guía de contribución
Línea de trabajo
Reproduce el comportamiento con `codeql database print-baseline`, `codeql database analyze` y la consulta de diagnósticos de C++ `diagnostics/FunctionCalls.ql`. Empieza rastreando cómo se interpretan los recuentos de archivos de la línea base durante la generación de resultados SARIF e inspecciona el paquete de consultas estándar de C++ y la documentación relevante. Se considera terminado cuando el significado del límite y las opciones de configuración estén documentados o se haya corregido el comportamiento con resultados vacíos, junto con una prueba de regresión.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp
- Área
- tooling
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100