The quality of Debian packaging can be improved by using testing tools.
If you follow 「4章Tool Setups」, these are automatically executed. You are expected to fix all warnings.
It is a good idea to reformat debian/* files consistently using the wrap-and-sort(1) command in devscripts package.
Reformat debian/* files.
[debhello-0.0] $ wrap-and-sort -vast
The new debputy tool [17] includes subcommands to validate (and fix) most files in debian/*.
Check correctness of files in debian/*.
[debhello-0.0] $ debputy lint --spellcheck
Format debian/control and debian/tests/control files.
[debhello-0.0] $ debputy reformat --style black
Using the 「debputy reformat」 command obsoletes using 「wrap-and-sort -vast」.
The debputy tool also includes a language server. You can set up to get real-time feedback while editing debian/* files with any modern editor supporting the Language Server Protocol.
[17] The main purpose of the debputy tool is to offer a new Debian package build paradigm. This new paradigm is beyond the scope of this tutorial.