Skip to content

Commit c638e42

Browse files
authored
fix(checkstyle)!: remove the "file:" prefix from the artifact URI (#290)
1 parent 1280212 commit c638e42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ local function handle_checkstyle_output(params)
3535
for _, result in ipairs(results) do
3636
for _, location in ipairs(result.locations) do
3737
local col = location.physicalLocation.region.startColumn
38+
local parsedUri = location.physicalLocation.artifactLocation.uri:gsub("^file:", "")
3839

3940
table.insert(output, {
4041
row = location.physicalLocation.region.startLine,
@@ -43,7 +44,7 @@ local function handle_checkstyle_output(params)
4344
code = result.ruleId,
4445
message = result.message.text,
4546
severity = h.diagnostics.severities[result.level],
46-
filename = location.physicalLocation.artifactLocation.uri,
47+
filename = parsedUri,
4748
})
4849
end
4950
end

0 commit comments

Comments
 (0)