cackle-rs / cackle

A code ACL checker for Rust
Other
206 stars 7 forks source link

Auto mode #19

Open jayvdb opened 3 months ago

jayvdb commented 3 months ago

I am setting up a project for the first time, and it would be helpful to have a mode which automatically selects a sensible fix for each problem, roughly always pressing "1" for each problem. Then I can review the config at the end. (already ~2000 lines)

davidlattimore commented 3 months ago

There's a mode where it will auto-accept all fixes where the problem only has a single available fix - that's activated by pressing 'a'.

One up-side to reviewing the permissions as you go is that the UI makes it easy to see how each crate is using a particular permission - you can press 'd' to see the source code where it uses it. If you're reviewing the config file afterwards, you've lost easy access to that information.

davidlattimore commented 3 months ago

I think the mode I mentioned (where you press 'a') is only in the full terminal UI, not the basic UI.