So far, the behavior of different Kconfig checks has been parametrized
using the `run()` method, and every new check has introduced with it a
new argument to that method.
It's possible to replace each `run()` argument by way of overriding
different class methods and making better use of inheritance:
free=False Stub check_no_undef_outside_kconfig()
no_modules=True Stub get_modules()
filename Introduce class member FILENAME
hwm (unused)
This should establish a more scalable and straightforward pattern for
adding future Kconfig checks. It also favors composability, which will
come in handy when implementing checks for sysbuild Kconfig.
Additionally, avoid duplicating `doc` and `path_hint` in every subclass.
Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
|
||
|---|---|---|
| .. | ||
| coverage | ||
| es_upload | ||
| stats | ||
| check_compliance.py | ||
| errno.py | ||
| guideline_check.py | ||
| Kconfig.board.v2 | ||
| pylintrc | ||
| tags.yaml | ||
| test_plan.py | ||
| twister_ignore.txt | ||
| upload_test_results_es.py | ||
| version_mgr.py | ||