pfff
syntax-searcher
pfff | syntax-searcher | |
---|---|---|
6 | 1 | |
2,422 | 4 | |
- | - | |
0.0 | 6.6 | |
about 5 years ago | 7 months ago | |
OCaml | Rust | |
GNU General Public License v3.0 or later | GNU Affero General Public License v3.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pfff
-
AST-grep(sg) is a CLI tool for code structural search, lint, and rewriting
Hi, ast-grep author here. This is a great question and I asked this in the first place before I started the hobby project.
TLDR; I designed ast-grep to be on different tracks than semgrep.
Semgrep is for security and ast-grep is for development.
First and foremost, I have always been in awe of semgrep. Semgrep's documentation, product sites and Padioleau's podcast all gave me a lot of inspiration. Using code to find code is such a cool idea that I never need to craft an intricate regex or write a lengthy AST program. sgrep and patch from https://github.com/facebookarchive/pfff/wiki/Sgrep have helped me a lot in real large codebases.
When I used semgrep as a software engineer, instead of a security researcher, I found semgrep has not touched too much on routine development works. I can use `semgrep -e PATTERN` but the Python wrapper is not too fast compared to grep.
-
Interesting ocaml mention in buck2 by fb
Meta/Facebook are long time OCaml users, their logo is on the OCaml website. Their static analysis tool and its predecessor are both written in OCaml.
-
What's wrong with static-analysis autofix/codemod tools? Why don't we use them more, across the industry? What's your experience?
Over the decades, there's been so very many attempts to address this conundrum; and yet, ...
- Show HN: Semgrep App
- Show HN: Visualizing a Codebase
syntax-searcher
-
AST-grep(sg) is a CLI tool for code structural search, lint, and rewriting
Most other repositories print all results pretty much instantly.
[1] https://github.com/jgke/syntax-searcher
What are some alternatives?
WhiteBeam - WhiteBeam: Transparent endpoint security
ssr.nvim - Treesitter based structural search and replace plugin for Neovim.
flow - Adds static typing to JavaScript to improve developer productivity and code quality.
diffsitter - A tree-sitter based AST difftool to get meaningful semantic diffs
vircadia-native-core - Vircadia open source agent-based metaverse ecosystem.
srgn - A code surgeon for precise text and code transplantation. A marriage of `tr`/`sed`, `rg` and `tree-sitter`.
ocaml-tree-sitter-semgrep - Generate parsers from tree-sitter grammars extended to support Semgrep patterns
ruff - An extremely fast Python linter and code formatter, written in Rust.
infer - A static analyzer for Java, C, C++, and Objective-C
ast-grep - ⚡A CLI tool for code structural search, lint and rewriting. Written in Rust
HHVM - A virtual machine for executing programs written in Hack.
cgrep - cgrep is an npm package for writing project checks with regex.