vint icon indicating copy to clipboard operation
vint copied to clipboard

Vint warns if there is no augroup in ftdetect scripts

Open przepompownia opened this issue 4 years ago • 1 comments

Both manual mention that there are no need to wrap commands by an additional autocmd.

przepompownia avatar Mar 21 '20 19:03 przepompownia

To stay this even more strongly, I think that :help ftdetect implies that scripts should not wrap autocommands in an augroup in a ftdetect file.

There have definitely been problems when people follow the false warning. E.g, https://github.com/fatih/vim-go/pull/1645 mentioned in https://github.com/Vimjas/vint/issues/264.

Would you be open to pull requests for these two changes?

  • Remove warning about missing augroup in ftdetect scripts.
  • Add a warning if someone (mistakenly) uses an augroup in a ftdetect script? (As suggested by @thinca in the issue above.)

telemachus avatar Feb 13 '22 15:02 telemachus