Skip to content

Commit c474060

Browse files
committed
feat: Pass fname and cwd to parse function (#246)
1 parent 8e72406 commit c474060

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/guard/lint.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function M.do_lint_single(buf, config)
104104
end
105105

106106
if #data > 0 then
107-
results = lint.parse(data, buf)
107+
results = lint.parse(data, buf, fname, cwd)
108108
end
109109

110110
vim.schedule(function()
@@ -119,7 +119,7 @@ function M.do_lint_single(buf, config)
119119
else
120120
data = lint.fn(prev_lines)
121121
if #data > 0 then
122-
results = lint.parse(data, buf)
122+
results = lint.parse(data, buf, fname, cwd)
123123
end
124124

125125
vim.schedule(function()

0 commit comments

Comments
 (0)