[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#832096: lintian: please check for common typos in debian/rules target names



* Chris Lamb <lamby@debian.org>, 2016-07-22, 13:46:
Lintian is already aware of existing dh_* commands (see data/debhelper/dh_commands), so maybe we could use this list instead of manually maintaining possible misspellings?

Not without changing this data structure as we want multiple misspellings to map to the correct spelling. A clever regex is also not suitable either as there are some dh_ commands that *do* have an underscore as a separator.

I meant something like this:

If there's override_dh_FOO, but dh_FOO is not in data/debhelper/dh_commands, and there's a known dh_* command that is within close edit distance to dh_FOO, then that's probably a typo.

This would be similar to how we detect typos in DEP-5 copyright files (see checks/source-copyright.pm, grep for field-name-typo).

This would let us find more creative misspellings, like the infamous dh_auto_instakk[0].


[0] https://lists.debian.org/1293393714.3162.18464.camel@hathi.jungle.funky-badger.org

--
Jakub Wilk


Reply to: