3 ms·
The CI use case is cool, and probably makes more money. But I would really love to see a CLI for optimized search and replace. It seems that they have search av
by kevincox 6y ago
The CI use case is cool, and probably makes more money. But I would really love to see a CLI for optimized search and replace. It seems that they have search available on the CLI however I can't see any replace. And most of the options are focused on running the rule config instead of adhoc replacements.
- ievans 6y agoThe CLI does have an --autofix flag, but the replacement it uses has to be specified through a local config file rather than as a command line arg. There is a ticket that though! https://github.com/returntocorp/semgrep/issues/840 https://github.com/returntocorp/semgrep/issues/840 Here are docs for what exists currently https://semgrep.dev/docs/experiments/#autofix https://semgrep.dev/docs/experiments/#autofix