-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: remove tree sitter walking (#1206)
* feat: go ast * wip * refactor: move over to new tree (scopes not implemented) * perf: use node for executing rules * build: update to go 1.21 * refactor: remove per language composition * refactor: remove old tree package * test: fixup detector tests * refactor: move pattern implementation into separate type * feat: add back dataflow * fix: fixup a few FIXMEs * feat: implement cursor scope * chore: favour golang slices pkg over ssoroka * feat: aliased nodes * fix: use correct query param name * refactor: better name for strict/static cursor scope * perf: improve cache performance * refactor: reorganize packages * fix: crashes * fix: query performance regression * perf: store query results on nodes * perf: cache tweaks * chore: log tree and query ids for trace * refactor: add file context * chore: improve trace output * fix: don't analyze anonymous nodes * fix: update correct slice in builder alias method * fix: fixes from testing rules * wip: further improvements * fix: include receiver in .to_ call dataflow * fix: lookup vars in js call functions * fix: use name node for import variable * feat: better javascript spread element support * feat: more reflexive methods * fix: variable nodes * fix: add getBytes reflexive method * refactor: add comment on memory reuse * chore: add more trace logging * refactor: fix some imports * refactor: use normal slices pkg * test: fix tests * refactor: simplify scanner objects * perf: further performance improvement * test: fix remaining tests * refactor: add scanner rule type * perf: more performance improvements * fix: allow multiple string detections * feat: variable imports * test: add tests for filters * fix: fixes from testing * fix: performance regression * chore: add local scan options to envrc example * feat: add more java reflexive methods * fix: ensure worker processes exit if parent dies * fix: built-in rule filter matches * fix: add more ruby reflexive methods * fix: ignoring of minified files * fix: more ruby reflexive * fix: typo in rule validation message * test: update remaining tests * refactor: fix linting issues * fix: returning of datatype detections * fix: make node dump stable * test: ensures env variables don't conflict with tests --------- Co-authored-by: Cédric Fabianski <cfabianski@me.com>
- Loading branch information
1 parent
058d751
commit 5e0772d
Showing
1,705 changed files
with
19,489 additions
and
9,888 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
pkg/parser/sitter/**/*.c linguist-generated | ||
pkg/parser/sitter/**/*.cc linguist-generated | ||
internal/parser/sitter/**/*.c linguist-generated | ||
internal/parser/sitter/**/*.cc linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.