Skip to content

Commit 65a9e5c

Browse files
author
Jose Alvarez
committed
chore: format
1 parent ebd05e8 commit 65a9e5c

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

doc/BUILTINS.md

-2
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,6 @@ local sources = { null_ls.builtins.diagnostics.pylama }
12081208

12091209
### [pylint](https://github.com/PyCQA/pylint)
12101210

1211-
\
12121211
Pylint is a Python static code analysis tool which looks for programming
12131212
errors, helps enforcing a coding standard, sniffs for code smells and offers
12141213
simple refactoring suggestions.
@@ -1233,7 +1232,6 @@ null_ls.setup({
12331232
})
12341233
```
12351234

1236-
12371235
#### Usage
12381236

12391237
```lua

lua/null-ls/builtins/diagnostics/cpplint.lua

+13-9
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,19 @@ return h.make_builtin({
2020
to_stdin = false,
2121
from_stderr = true,
2222
to_temp_file = true,
23-
on_output = h.diagnostics.from_pattern("[^:]+:(%d+): (.+) %[(.+)%/.+%] %[%d+%]", { "row", "message", "severity" }, {
24-
severities = {
25-
build = h.diagnostics.severities["warning"],
26-
whitespace = h.diagnostics.severities["hint"],
27-
runtime = h.diagnostics.severities["warning"],
28-
legal = h.diagnostics.severities["information"],
29-
readability = h.diagnostics.severities["information"]
30-
},
31-
}),
23+
on_output = h.diagnostics.from_pattern(
24+
"[^:]+:(%d+): (.+) %[(.+)%/.+%] %[%d+%]",
25+
{ "row", "message", "severity" },
26+
{
27+
severities = {
28+
build = h.diagnostics.severities["warning"],
29+
whitespace = h.diagnostics.severities["hint"],
30+
runtime = h.diagnostics.severities["warning"],
31+
legal = h.diagnostics.severities["information"],
32+
readability = h.diagnostics.severities["information"],
33+
},
34+
}
35+
),
3236
check_exit_code = function(code)
3337
return code >= 1
3438
end,

lua/null-ls/builtins/diagnostics/pylint.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ return h.make_builtin({
77
name = "pylint",
88
meta = {
99
url = "https://github.com/PyCQA/pylint",
10-
description = [[\
10+
description = [[
1111
Pylint is a Python static code analysis tool which looks for programming
1212
errors, helps enforcing a coding standard, sniffs for code smells and offers
1313
simple refactoring suggestions.

scripts/autogen.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ end
9595
local generate_builtin_description = function(source)
9696
return source.meta.description and {
9797
"",
98-
source.meta.description,
98+
vim.trim(source.meta.description),
9999
} or {}
100100
end
101101

0 commit comments

Comments
 (0)