dense-analysis / ale

Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
BSD 2-Clause "Simplified" License
13.42k stars 1.42k forks source link

Support Gentoo ebuild and metadata formats #2797

Open lovesegfault opened 4 years ago

lovesegfault commented 4 years ago

A Gentoo ebuild (foopkg-1.2.3.ebuild) is valid bash, and should make use of the available bash linters. In addition, Gentoo's metadata.xml files should use the XML linters/fixers, but don't since Vim tags them as gentoo-metadata file format.

lovesegfault commented 4 years ago

These changes are probably trivial, and I'd be happy to make a PR if someone points me in the right direction :)

w0rp commented 4 years ago

You can make it easier to run linters on these files by updating the default values for g:ale_linter_aliases. If you look at linter.vim you can update the defaults and the documentation.