plugins: normalise null plugin-defaults

Replaced all instances of `"null"` with `null`, when passing
plugin-defaults to `defaultNullOpts` functions.
This commit is contained in:
Matt Sturgeon 2024-06-02 02:58:20 +01:00
parent e58380adcd
commit d136c08f3a
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
17 changed files with 69 additions and 55 deletions

View file

@ -4,20 +4,20 @@
with lib;
{
formatting = {
command = helpers.defaultNullOpts.mkListOf types.str "null" ''
command = helpers.defaultNullOpts.mkListOf types.str null ''
External formatter command (with arguments).
It should accepts file content in stdin and print the formatted code into stdout.
'';
};
diagnostics = {
ignored = helpers.defaultNullOpts.mkListOf types.str "[]" ''
ignored = helpers.defaultNullOpts.mkListOf types.str [ ] ''
Ignored diagnostic kinds.
The kind identifier is a snake_cased_string usually shown together
with the diagnostic message.
'';
excludedFiles = helpers.defaultNullOpts.mkListOf types.str "[]" ''
excludedFiles = helpers.defaultNullOpts.mkListOf types.str [ ] ''
Files to exclude from showing diagnostics. Useful for generated files.
It accepts an array of paths. Relative paths are joint to the workspace root.
Glob patterns are currently not supported.