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

CLI semantic grep tool #8

Open
kazcw opened this issue Oct 10, 2018 · 0 comments
Open

CLI semantic grep tool #8

kazcw opened this issue Oct 10, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@kazcw
Copy link
Owner

kazcw commented Oct 10, 2018

I came across this in the wild:

rg -USP 'match\s+.+\s+{\s+Ok\((\w+)\)\s+=>\s+\1.*\s+Err\((\w+)\)\s+=>\s+\2'

and I realized comacro is not far from being usable for that kind of thing (which doesn't need the complexites of hir integration or necessarily the guarantee that it's false-positive free). #7 will be useful for this.

@kazcw kazcw added the enhancement New feature or request label Oct 10, 2018
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