Commits
Click on a commit to change the comparison rangeFirst-pass implementation of `Display` for `ruff_workspace::Settings`
- A new utility macro, `display_settings`, has been created to reduce boilerplate for displaying settings fields
- `Display` has been implemented on many custom types used in `ruff_workspace::Settings`
- `--show-settings` now uses `Display` instead of `Debug` on `ruff_workspace::Settings`
Work left to be done:
- A lot of formatting for Vec<_> and HashSet<_> types has been stubbed out, using `Debug` as a fallback. There should be a way to add generic formatting support for these types as a modifier in `display_settings`.
- Several complex types were also stubbed out and need proper `Display` implementations rather than falling back on `Debug`
- An open question needs to be answered: should this output be valid TOML? How important is that?1 year ago
by InquisitivePenguin Eliminate unnessecary allocations in the `Display` implementations of `FilePatternSet` and `RuleSet`1 year ago
by InquisitivePenguin Add `quoted` formatter to `display_settings` and document the `display_settings` macro1 year ago
by InquisitivePenguin Properly implement `Display` for `PerFileIgnores`1 year ago
by InquisitivePenguin Merge branch 'main' of github.com:astral-sh/ruff into jane/settings/display-improvements1 year ago
by InquisitivePenguin Set up a snapshot test for the default output of `--show-settings`1 year ago
by InquisitivePenguin Cleanup snapshot tests1 year ago
by InquisitivePenguin Make `resolve_per_file_ignores` into an associated function1 year ago
by InquisitivePenguin Merge branch 'main' of github.com:astral-sh/ruff into jane/settings/display-improvements1 year ago
by InquisitivePenguin