Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaf Node Locatable #4

Merged
merged 2 commits into from
Sep 4, 2020
Merged

Leaf Node Locatable #4

merged 2 commits into from
Sep 4, 2020

Conversation

agius
Copy link
Owner

@agius agius commented Sep 4, 2020

Since #3 ran aground on getting codeql test run working in Github Actions, this PR trims that out and sticks with the rspec -based extractor tests. Otherwise cherry-picks out the commits from there. codeql test run will have to be its own PR.

Adds location-fetching methods to LeafNode, allowing you to click through from a node selection to the source location in VS Code.

Adds CodeQL classes for File, Folder, Location, and Locatable, all basically ripped from the JS CodeQL library.

Also adds a CodeQL tests/ dir which can be run using `codeql test run ql/test` , and added that to the CI suite. This may replace the existing e2e CodeQL runner currently in Ruby, following [PoLA](https://en.wikipedia.org/wiki/Principle_of_least_astonishment) for CodeQL development. See [Semmle help documentation](https://help.semmle.com/codeql/codeql-cli/procedures/test-queries.html) on testing CodeQL custom queries and libraries.
@agius agius merged commit c555736 into main Sep 4, 2020
@agius agius deleted the leaf-node-locatable branch September 4, 2020 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant