From 08b2ecc99a1ac1c461117bf6c79b77484eb433e4 Mon Sep 17 00:00:00 2001 From: Alexander Brevig Date: Mon, 19 Sep 2022 15:38:20 +0200 Subject: feat: xtask themelint (#3234) * feat: cargo xtask themelint * fix: add docs and print json error status * fix: refactor paths -> path * fix: remove unused function * fix: only report one err per scope (ui.statusline is reported if none of ui.statusline.* is recognized) * fix: save work for later * fix: finally decided on a design * fix: ready for discussion * fix: better rules * fix: lint precision * fix: String -> &'static str * fix: allowlist not denylist for file type * fix: add missing and indication of what's needed * fix: copy pasteable errors * fix: use Loader:read_names * Update xtask/src/helpers.rs Co-authored-by: Ivan Tham * fix: remove into and clone for str * Update book/src/themes.md Co-authored-by: Ivan Tham * fix: better lint output * fix: cleaner logic for lint reporting * style: use explicit imports * Pascal support (#3542) * fix: add difference check for statusline normal,insert,select * fix: fg for whitespace and early exit if and one is ok * chore: cleaning up, no idea how these got here or how this will look * chore: revert from older commit? * refactor: use static fn to equalize api between difference and existance * refactor: querycheck and clippy * refactor: clippy fixes * fix: query-check behaves as before * fix: error with x of y message, not total count * fix: consistent reporting and less mutable state * fix: selection difference ref #3942 ref #1833 Co-authored-by: Ivan Tham Co-authored-by: ath3 <45574139+ath3@users.noreply.github.com>--- book/src/themes.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'book') diff --git a/book/src/themes.md b/book/src/themes.md index b37ee852..9908456f 100644 --- a/book/src/themes.md +++ b/book/src/themes.md @@ -254,4 +254,10 @@ These scopes are used for theming the editor interface. | `diagnostic.warning` | Diagnostics warning (editing area) | | `diagnostic.error` | Diagnostics error (editing area) | +You can check compliance to spec with + +```shell +cargo xtask themelint onedark # replace onedark with +``` + [editor-section]: ./configuration.md#editor-section -- cgit v1.2.3-70-g09d2