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

Add option to select tree-sitter statements #2

Open
atxr opened this issue Feb 7, 2025 · 0 comments
Open

Add option to select tree-sitter statements #2

atxr opened this issue Feb 7, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@atxr
Copy link
Member

atxr commented Feb 7, 2025

Currently, tree-sitter statements are hardcoded in the scrings lib
See here for python

It could be very useful to be able to set it manually, by adding or removing some statements depending on the current analysis.
Indeed, during a scan, it can happen that a statement is very noisy, or on the contrary that the output is not noisy enough.

On the cli, it could be two flags like --exclude-statement and --include-statement:

scrings -p to_scan.raw -l python --exclude-statement import_statement --include-statement slice
@atxr atxr added the enhancement New feature or request label Feb 7, 2025
@atxr atxr self-assigned this Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant