JuliaFormatter.jl
JuliaFormatter.jl copied to clipboard
Ask Before Changes
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.