Search code examples
sublimetext3sublimelinter

ST3 SublimeLinter with HTML tidy doesn't obey args


I want to suppress various kind of useless linter error reports, e.g. lacks "content" attribute. So I tried experimenting with setting the options in SublimeLinter.sublime-settings:

    "linters": {
        "htmltidy": {
            "@disable": false,
            "args": [-xxx true],
            "excludes": []
        }
    },

and so on and they don't seem to do anything. Am I doing something wrong?


Solution

  • The settings file is a JSON file, and it looks like your edits are not valid JSON. Try putting quotes around the args, either:

    "args": ["-xxx true"]
    

    or

    "args": ["-xxx", "true"]