Add ability to generate a QL query from a code snippet

Open
#550 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript, vscode
Domain
devtools, tooling

Research direction

Start by tracing the VS Code extension entry point for the proposed “CodeQL: Generate query” command and how it receives a selected code snippet. Define the expected behavior around generating one or more QL predicates and opening them in a new editor; done means users can generate predicates for sources or sinks from a selected property or method call.

Written by the indexing model from the issue text.

Description

Complexity: High enhancement VSCode
  • 90% of users 90% of the time, all they need is to define their sources and sinks and plop them into a Data Flow config.
  • Not everyone needs to write config flows from scratch. New users often just need help writing sources and sinks.

The idea would be that a user selects a code snippet (a property, method call, etc), runs the CodeQL: Generate query command, and a new editor opens with one or more generated QL predicates that each will select the target of the snippet to greater or lesser specificity.

Dominant language
TypeScript
Stars
539
Forks
240
Avg merge
2d 6h
Merged PRs (30d)
29

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/vscode-codeql

All issues in github/vscode-codeql

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.