coc-diagnostic icon indicating copy to clipboard operation
coc-diagnostic copied to clipboard

[question] how to make default security be warning not error

Open Freed-Wu opened this issue 3 years ago • 1 comments

Such as

      "lacheck": {
        "command": "lacheck",
        "args": ["%file"],
        "debounce": 100,
        "offsetLine": 0,
        "offsetColumn": 0,
        "sourceName": "lacheck",
        "formatLines": 1,
        "formatPattern": [
          "\"[^\"]+\", line (\\d+):\\s*(.*)(\\r|\\n)*$",
          {
            "line": 1,
            "message": 2
          }
        ],
      }

and

$ lacheck main.tikz
"main.tikz", line 10: possible unwanted space at "{"

CocDiagnostics will report [lacheck] Error possible unwanted space at "{"

However, according to lacheck --help, all lacheck's messages are warning:

$ lacheck --help|rg warning
All messages are only warnings!

So the right CocDiagnostics should be [lacheck] Warning possible unwanted space at "{"

How to change the default security? Thanks!

Freed-Wu avatar Feb 13 '22 04:02 Freed-Wu

try https://github.com/iamcco/coc-diagnostic/pull/56#issuecomment-711620863

iamcco avatar Mar 25 '22 09:03 iamcco