We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
forge query
Forge
Provide an AST pattern, and see details about when that pattern was introduced.
This enables a much easier way to understand how or why a pattern was introduced. For instance, you can answer questions such as:
solmate
open-zeppelin
To query the codebase to search for such a pattern, we can specify an AST selector as it would be accepted by Forge Lint.
AST selector is supported on AST Explorer for solidity.
For instance, to search for console.log() calls in javascript, the ESLint selector would be
"CallExpression[callee.object.name=console][callee.property.name=log]"
This could be used to help automate refactoring, finding regressions, etc
No response
The text was updated successfully, but these errors were encountered:
Not entirely sure how this feature would answer those questions without some sort of time scale/log, can you expand on that?
Sorry, something went wrong.
It would resolve to the git commit, can do a PoC tomorrow or Saturday possibly
Not entirely sure how this feature would answer those questions without some sort of time scale/log, can you expand on that? It would resolve to the git commit, can do a PoC tomorrow or Saturday possibly
Waiting for this to land: gakonst/ethers-rs#1567
Is this not https://github.com/ast-grep/ast-grep ?
No branches or pull requests
Component
Forge
Describe the feature you would like
Forge Query
This enables a much easier way to understand how or why a pattern was introduced. For instance, you can answer questions such as:
solmate
, and which are usingopen-zeppelin
?To query the codebase to search for such a pattern, we can specify an AST selector as it would be accepted by Forge Lint.
For instance, to search for console.log() calls in javascript, the ESLint selector would be
"CallExpression[callee.object.name=console][callee.property.name=log]"
Other use cases
This could be used to help automate refactoring, finding regressions, etc
Additional context
No response
The text was updated successfully, but these errors were encountered: