-
-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cppcheck v2.12.0 failing #492
Comments
I'm going to describe my problem and a solution of it, I hope it'll help you My setup
ProblemNo inline diagnostics, only the message Solution
|
I was able to fix this by checking in the linter itself if the build directory exists: args = {
"--enable=warning,style,performance,information",
function()
if vim.bo.filetype == "cpp" then
return "--language=c++"
else
return "--language=c"
end
end,
"--inline-suppr",
"--quiet",
function()
if vim.fn.isdirectory("build") == 1 then
return "--cppcheck-build-dir=build"
else
return ""
end
end,
"--template={file}:{line}:{column}: [{id}] {severity}: {message}",
}, |
@ismasou could you create a PR for that change? |
Recent versions of Cppcheck (v2.12.0) are failing with nvim-lint
The text was updated successfully, but these errors were encountered: