ruff/crates/ruff_diagnostics
Charlie Marsh 5e2bb8ca07
Add a Fix constructor that takes Applicability as an argument (#8514)
## Summary

If you want to create an edit with dynamic applicability, you have to
branch and repeat the edit entirely between the two branches. If you
further need the edit itself to be dynamic (e.g., perhaps you have a
single edit in one case, vs. multiple in another), you suddenly have
four branches. This PR just adds an alternate constructor that takes
applicability as an argument, as an escape hatch.
2023-11-06 09:45:10 -05:00
..
src Add a Fix constructor that takes Applicability as an argument (#8514) 2023-11-06 09:45:10 -05:00
Cargo.toml Add settings for promoting and demoting fixes (#7841) 2023-10-10 20:04:21 +00:00