Nat Mote
Nat Mote
Specifically, this is meant to test the JSON output for dataflow traces generated from the CI command, but it tests quite a bit more. This was requested in the review...
Tree sitter extracts default aliases for rules that only appear in aliases. The reasoning is explained in the comments in `extract_default_aliases.rs`. The default alias is used in place of the...
Aliasing an extra in any rule in the grammar (even an unused rule) changes the name of the extra everywhere it is reported. My understanding is that an alias is...
Some discussion has already been happening in #335, but since it's off topic from that original issue I hope to move the discussion here. @benogle I know you have partially...
This is a followup to #177. After replacing `_semi` with `semi` in the grammar, so that those nodes get displayed, running `npx tree-sitter parse test.swift` on ``` foo bar; baz...
This implements end-to-end AST-based autofix in semgrep-core. There are still numerous unhandled cases. The cases that I did handle are enough to illustrate the design, and are enough to address...
Previously, the fix from semgrep-core would get applied, but the CLI would display the autofix that it computed. Doing this earlier in the pipeline means that the CLI displays the...
We have a bunch of error handling at rule creation time which nicely handles pattern parse errors. An optimization made pattern parsing lazy, so any exceptions related to pattern parsing...
The latest version in opam is v0.6.0, published in May 2021. It depends on ppxlib < 0.26.0. Many other packages require a newer version of ppxlib at this point, which...
Test plan: * Automated tests * Add `prerr_endline "HELLO WORLD";` to the beginning of the `RPC.main` function. Run an autofix rule with `--autofix` and observe the autofix get correctly applied...