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

Can't get custom diagnostics to work #1192

Answered by Integralist
Integralist asked this question in Q&A
Discussion options

You must be logged in to vote

This is the final solution:

    use { "jose-elias-alvarez/null-ls.nvim",
      config = function()
        local null_ls = require("null-ls")
        local helpers = require("null-ls.helpers")

        local tfproviderlintx = {
          name = "tfproviderlintx",
          method = null_ls.methods.DIAGNOSTICS,
          filetypes = { "go" },
          generator = helpers.generator_factory({
            args = { "-XAT001=false", "-R018=false", "$FILENAME" },
            check_exit_code = function(code, stderr)
              local success = code < 1
              if not success then
                print(stderr)
              end
              return success
            end,
            com…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@Integralist
Comment options

@Integralist
Comment options

@jose-elias-alvarez
Comment options

@Integralist
Comment options

@Integralist
Comment options

Comment options

You must be logged in to vote
2 replies
@jose-elias-alvarez
Comment options

@lo-b
Comment options

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