utils/check-package: allow to disable warning for a line
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Sun, 27 Jan 2019 18:59:41 +0000 (16:59 -0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 29 Jan 2019 15:37:47 +0000 (16:37 +0100)
commit4a6c5ab2c31f732802a7ac643ca6335821d6d38f
tree79838f2381ab34be2904fb71b0668183a9487715
parent908a8b5a7fb5744c55adbe609dca991709b2181a
utils/check-package: allow to disable warning for a line

Currently any exceptions for a check function need to be coded into the
check-package script itself.

Create a pattern that can be used in a comment to make check-package
ignore one or more warning types in the line immediately below:
 # check-package Indent, VariableWithBraces

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
utils/check-package
utils/checkpackagelib/base.py