package_linter icon indicating copy to clipboard operation
package_linter copied to clipboard

Warning on usage of IS_PACKAGE_CHECK

Open maniackcrudelis opened this issue 4 years ago • 0 comments

I see too many times the solution of an if on $PACKAGE_CHECK_EXEC to pass tests on package check...

While using $PACKAGE_CHECK_EXEC can be completely relevant, this is often seen as a simple way to pass falling tests.

I thought about matching it from Package_check, but it's clearly more relevant to match it from linter.

I know of 3 different way to avoid test in package check

uname -n | grep -c 'pchecker_lxc'
env | grep -c container=lxc
$PACKAGE_CHECK_EXEC

Often used behind the name IS_PACKAGE_CHECK

A warning should be added for such an usage of ways to avoid tests. But only warning as it can be relevant and some apps do actually need that to be tested.

maniackcrudelis avatar Apr 16 '20 10:04 maniackcrudelis