getgrit / gritql

GritQL is a query language for searching, linting, and modifying code.
https://docs.grit.io/
MIT License
3.17k stars 82 forks source link

grit check mistakenly suggests to the user there's a rewrite available when there isn't #577

Open collinc777 opened 6 days ago

collinc777 commented 6 days ago

Example rule:

`print("hello world")`
grit check
./somefilepath.py
  39:1    match  hello world not allowed.    hello_world_rule

 1 files with rewrites. Run grit check --fix to apply changes.

then grit check --fix doesn't do anything although it says (1 File fixed)