v0.23.1
This is a patch release containing a number of fixes. Most of the issues fixed in this release were not directly related to v0.23.0, but we simply don't like the idea of waiting for the next release to address known bugs.
Bugs fixed
- Ignore directives (like
# regal ignore:unresolved-import
) didn't work properly for aggregate rules (i.e. rules that require multiple files to determine if the rule is violated or not). That's now been fixed. Thanks @nejec for bringing this to our attention! - Fix missing rule type in the header of the unresolved-import rule documentation
- An empty
.regal/config.yaml
file would previously have Regal fail with an error. Now it'll simply print a warning and continue with the default configuration - Fix an issue in the language server where completion suggestions would sometimes repeat a word already typed in
- Remove an init call in the language server that would take ~100 milliseconds to process, even for commands that didn't make use of the language server (like
regal lint
) - The
regal lint --format json
would previously output errors as pretty-printed text rather than JSON. That has now been fixed. - The
textDocument/diagnostic
response from the language server is nownull
rather than an empty object. This solves an issue observed with the Neovim client.
Changelog
- 3bcdc33: docs: move code of conduct (#800) (@anderseknert)
- 69f4dcb: docs: set the rule type for unresolved-import (#804) (@charlieegan3)
- 29a9c85: docs: abs link for do.rq (#806) (@charlieegan3)
- e1ed668: Support ignore directives in aggregate rules (#809) (@anderseknert)
- 99f8463: lsp: Use text edit for builtins providers (#814) (@charlieegan3)
- 9091021: Use config.docs.resolve_url consistently (#813) (@anderseknert)
- c2ec08f: lint/fix: roll over empty config (#815) (@charlieegan3)
- 982d13b: lsp/refs: Just in time init for refs util (#816) (@charlieegan3)
- d0def34: cmd/lint: show JSON errors (#817) (@charlieegan3)