github / github/codeql-cli-binaries

show error message NO_KIND_SPECIFIED

Open
#67 1 comment 0 reactions 0 assignees View on GitHub
CLI
Dominant language
No language data
Stars
1k
Forks
184
PR merge metrics
No merged PRs in 30d

Description

i use codeql database analyze .\demo2 ..\vscode-codeql-starter\ql\javascript\ql\src\code_test.ql --format=csv --output=a/js-results.csv, but a error happen

```
E:\code analysis\test2> codeql database analyze .\demo2 ..\vscode-codeql-starter\ql\javascript\ql\src\code_test.ql --format=csv --output=a/js-results.csv
Running queries.
Compiling query plan for E:\code analysis\vscode-codeql-starter\ql\javascript\ql\src\code_test.ql.
[1/1 comp 10.1s] Compiled E:\code analysis\vscode-codeql-starter\ql\javascript\ql\src\code_test.ql.
Starting evaluation of codeql-javascript\code_test.ql.
[1/1 eval 474ms] Evaluation done; writing results to codeql-javascript\code_test.bqrs.
Shutting down query evaluator.
Interpreting results.
A fatal error occurred: Could not process query metadata for E:\code analysis\vscode-codeql-starter\ql\javascript\ql\src\code_test.ql.
Error was: No query kind specified [NO_KIND_SPECIFIED]

```
code_test.ql:
```
import javascript
from DataFlow::CallNode call
where call.getCalleeName() = "open"
select call
```
The analysis code is as follows:

[test.md](https://github.com/github/codeql-cli-binaries/files/6564874/test.md)

I have already specified the ql file,but this is still an error...
Can someone help me.....
I really appreciate this!

Contributor guide

Open the contributing guide

Research direction

Reproduce the command against code_test.ql using the example in test.md, then inspect how the CLI processes metadata for that query. Check the query's metadata requirements and the CodeQL CLI handling of missing query kind information. Done means the command completes without NO_KIND_SPECIFIED and produces the requested CSV results.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
devtools, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.