mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
utils/check-package: allow exception for global checks
check-package has a mechanism for a specific file to make an exception to a specific checker, by preceding the offending line with "check-package ... <checker class>". However, this is not possible for the global checks that are done in the checker's after() function. Allow exceptions for the global checks by writing the same "check-package ... <checker class>" comment on the last line of the file. Signed-off-by: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
4dc6865568
commit
90533b6899
@@ -276,6 +276,8 @@ def check_file_using_lib(fname):
|
|||||||
return nwarnings, nlines
|
return nwarnings, nlines
|
||||||
|
|
||||||
for name, cf in objects:
|
for name, cf in objects:
|
||||||
|
if cf.disable.search(lastline):
|
||||||
|
continue
|
||||||
warn, fail = print_warnings(cf.after(), name in xfail)
|
warn, fail = print_warnings(cf.after(), name in xfail)
|
||||||
if fail > 0:
|
if fail > 0:
|
||||||
failed.add(name)
|
failed.add(name)
|
||||||
|
|||||||
Reference in New Issue
Block a user