File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
lua/null-ls/builtins/diagnostics Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments