Disable syntax html / tidy checker for file

Is there a way to disable the html / tidy plugin for syntax for a specific file?

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

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

+6
source share
3 answers

Try putting 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 might be useful. Read more about it here .

+5
source

I worked with this .hbs and .html template for a node project. Adding this to my .vimrc helped:

 let syntastic_mode_map = { 'passive_filetypes': ['html'] } 

here are more options https://github.com/scrooloose/syntastic/issues/240

+3
source

Also, if you just want to disable warnings for html tidy:

 let g:syntastic_html_tidy_quiet_messages = { "level" : "warnings" } 

I found this to be a convenient setting for editing branch templates.

Of course, for more information, in vim:

 :h syntastic-checkers 
0
source

All Articles