Skip to content

Can I suppress an entire file #598

Discussion options

You must be logged in to vote

Short answer: You can't.
Long Answer:

You can, but it requires a bit of extra work.
The following options exist:

  1. write a wrapper script that uses oelint-adv in libmode
import sys
from oelint_adv.core import create_lib_arguments, run

suppress_files = [
    'foo.inc'
]

results = run(create_lib_arguments(sys.argv))
issues = [x[1] for x in results]
filtered = [x for x in issues if not any(y in x for y in suppress_files)]

print('\n'.join(filtered))
sys.exit(len(results) if results else 0)
  1. use grep -v inverted regex search

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by priv-kweihmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant