diff options
author | Petr Vorel <pvorel@suse.cz> | 2019-08-09 09:37:52 +0200 |
---|---|---|
committer | Petr Vorel <pvorel@suse.cz> | 2019-08-09 15:48:12 +0200 |
commit | 89e384f42da5210ec30a1e29d4b05e2b8c80dc12 (patch) | |
tree | 689d199bd90c5c0a8bfcd41bb186a67c2bec1ad2 /build.sh | |
parent | 0242a9a2927a8861185d16c9a07716069b0b023e (diff) |
tst_test.sh: Reduce false positives in reserved variable warnings
"Reserved variable TST_FOO used!" and "Private variable or function
_tst_foo used!" reports some false positive.
Filter out commented code and variables and functions not starting with
searched prefix (foo_tst_bar() or $foo_tst_bar).
NOTE: There are still some false positives (e.g. echo "echo
TST_SHOULD_NOT_BE_FOUND"), but let's not complicate the regexp too much.
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Diffstat (limited to 'build.sh')
0 files changed, 0 insertions, 0 deletions