Add support for various debian source files (debian/{tests/control,control,copyright,watch,upstream/metadata})#5107
Add support for various debian source files (debian/{tests/control,control,copyright,watch,upstream/metadata})#5107jelmer wants to merge 8 commits into
Conversation
|
Thanks for this! Looks like I'll need to find some time to run through ALE PRs again and get more things merged. I'll have a look when I can! |
|
I'll paste this in every open PR: We finally managed to migrate CI checks for Windows from AppVeyor to GitHub Actions, and we've updated the minimum supported Vim version to 8.2. (Thought Vim 8.0 might happen to work for some.) In order to get checks to run again for a PR you'll need to rebase or merge. |
Add Language Server Protocol support for debian/tests/control files using debian-lsp (https://github.com/jelmer/debian-lsp). Vim detects these files as filetype 'autopkgtest' by default.
Add Language Server Protocol support for debian/control files using debian-lsp (https://github.com/jelmer/debian-lsp). debian-lsp provides diagnostics, completions, and code actions for Debian package control files.
Add Language Server Protocol support for debian/copyright files using debian-lsp (https://github.com/jelmer/debian-lsp).
Add Language Server Protocol support for debian/changelog files using debian-lsp (https://github.com/jelmer/debian-lsp).
Add Language Server Protocol support for debian/source/format files using debian-lsp (https://github.com/jelmer/debian-lsp).
Add Language Server Protocol support for debian/upstream/metadata files using debian-lsp (https://github.com/jelmer/debian-lsp). Note: Vim does not detect debian/upstream/metadata files by default. Users need to add filetype detection to their vimrc: autocmd BufNewFile,BufRead */debian/upstream/metadata setfiletype debupstream
Add Language Server Protocol support for debian/watch files using debian-lsp (https://github.com/jelmer/debian-lsp). Note: Vim does not detect debian/watch files by default. Users need to add filetype detection to their vimrc: autocmd BufNewFile,BufRead */debian/watch setfiletype debwatch
Update supported-tools.md, ale-supported-languages-and-tools.txt, and ale.txt table of contents to include the new Debian filetype linters (autopkgtest, debchangelog, debcontrol, debcopyright, debsources, debupstream, debwatch).
done! |
This adds support for a number of file formats used in Debian source packages, as supported by the debian-lsp.
I've added basic tests and manually tested that things work.
Since this is a single LSP that supports a number of different file formats, this PR feels a bit repetitive. I've tried to stick to the pattern I saw for other formats, but if you'd rather I consolidate some of the entries and documentation files, please let me know.