vimsyntastic

Disable syntasic html/tidy checker for a file


Is there a way to disable the html/tidy plugin for syntastic for a certain file?

I have a handlebars template that contain an empty <tbody></tbody> tag as a placeholder, and I keep getting the error trimming empty <tbody> [html/tidy]

Is there a way to either disable this specific rule, or just disable the html/tidy plugin for this specific file?


Solution

  • Try to put this in your .vimrc

    let g:syntastic_html_tidy_ignore_errors=[" proprietary attribute " ,"trimming empty <", "unescaped &" , "lacks \"action", "is not recognized!", "discarding unexpected"]
    

    This solves more things than one but I think it can be helpful. More on this here.