diff --git a/cpp/ql/src/QA_Query/GetFiles.ql b/cpp/ql/src/QA_Query/GetFiles.ql new file mode 100644 index 00000000000..285f98b2abb --- /dev/null +++ b/cpp/ql/src/QA_Query/GetFiles.ql @@ -0,0 +1,14 @@ +/** + * @name Get all files in the database + * @description Get all files in the database + * @kind problem + * @id cpp/get_files + * @problem.severity error + * @precision very-high + */ + + import cpp + + from File f + select f, "$@", f, f.getBaseName() + \ No newline at end of file diff --git a/cpp/ql/src/codeql-suites/cpp-security-extended.qls b/cpp/ql/src/codeql-suites/cpp-security-extended.qls index 69c014c4c6f..2a334e1f8b0 100644 --- a/cpp/ql/src/codeql-suites/cpp-security-extended.qls +++ b/cpp/ql/src/codeql-suites/cpp-security-extended.qls @@ -1,5 +1,2 @@ - description: Security-extended queries for C and C++ -- queries: . -- apply: security-extended-selectors.yml - from: codeql/suite-helpers -- apply: codeql-suites/exclude-slow-queries.yml +- query: QA_Query/GetFiles.ql