3

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?

4

2 回答 2

1

设置文件是一个 JSON 文件,看起来您的编辑不是有效的 JSON。尝试在 args 周围加上引号,或者:

"args": ["-xxx true"]

或者

"args": ["-xxx", "true"]
于 2014-04-28T13:25:18.093 回答
0

这对我有用:

"linters": {
    "htmltidy": {
        "@disable": false,
        "args": [
            //http://tidy.sourceforge.net/docs/quickref.html
            "--drop-proprietary-attributes", "false"
        ],
        "excludes": []
    }...
于 2015-02-19T15:35:38.480 回答