Problem
Four tools use custom fn in their configs, so their tests can't use the
run_fmt/run_lint helpers and must manually invoke the tool via
vim.system. This means the tests don't exercise the actual config definition
and could drift from what guard.nvim runs in practice.
Affected tools: prettierd, cpplint, checkmake, zsh
Possible solution
Either extend the test helpers to support fn-based configs (e.g. by calling
the fn directly with a mock buffer), or accept these as the only exceptions
to the "always use run_fmt/run_lint" rule and document them as such.
Problem
Four tools use custom
fnin their configs, so their tests can't use therun_fmt/run_linthelpers and must manually invoke the tool viavim.system. This means the tests don't exercise the actual config definitionand could drift from what guard.nvim runs in practice.
Affected tools: prettierd, cpplint, checkmake, zsh
Possible solution
Either extend the test helpers to support
fn-based configs (e.g. by callingthe
fndirectly with a mock buffer), or accept these as the only exceptionsto the "always use
run_fmt/run_lint" rule and document them as such.