-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromtree] scripts: ci: check_compliance: Update KconfigCheck sub…
…classing 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 <[email protected]> (cherry picked from commit 50d9ed5)
- Loading branch information
Showing
1 changed file
with
19 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters