Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

checkstyle config #1421

Discussion options

You must be logged in to vote

The issue with your first two approaches is that you are passing in the path to the buffer when Neovim is opened, not when the source actually runs. This may work:

diagnostics.checkstyle.with({
    timeout = 20000,
    filetypes = { "java" },
    args = function(params)
        return {
            "-f",
            "sarif",
            "-c",
            "/google_checks.xml",
            params.bufname,
        }
    end,
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sangramsingha
Comment options

Answer selected by sangramsingha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants