JuliaFormatter.jl icon indicating copy to clipboard operation
JuliaFormatter.jl copied to clipboard

Ask Before Changes

Open ParadaCarleton opened this issue 4 years ago • 0 comments
trafficstars

Feature request: Some way to run JuliaFormatter, then offer the user a way to accept/reject each proposed change. Useful for dealing with weird edge cases or bugs, and also gives more flexibility for the formatter to be more aggressive by making it easy to override -- e.g. you could suggest replacing for i in 1:length(x) with for i in eachindex(x) as mentioned here, which is a decent heuristic (usually it's better to use eachindex) but can't be assumed to be preferred since they're not semantically equivalent.

ParadaCarleton avatar Nov 16 '21 21:11 ParadaCarleton