package/Config.in, package/Config.in.host, package/x11r7/Config.in and
package/kodi/Config.in do not comply with the normal Config.in
indentation rules. However, this violation of the rule is legitimate, so
let's skip them in check-package for this specific indentation check.
This removes the last 2197 remaining warnings on Config.in files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[Ricardo: rebase patch to use relative paths passed by the main script,
fix flake8 warnings, add package/Config.* to the list]
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
text]
elif entry in entries_that_should_not_be_indented:
if not text.startswith(entry):
+ # four Config.in files have a special but legitimate indentation rule
+ if self.filename in ["package/Config.in",
+ "package/Config.in.host",
+ "package/kodi/Config.in",
+ "package/x11r7/Config.in"]:
+ return
return ["{}:{}: should not be indented"
.format(self.filename, lineno),
text]