File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -110,3 +110,4 @@ SysbuildKconfigBasic.txt
110
110
SysbuildKconfigBasicNoModules.txt
111
111
TextEncoding.txt
112
112
YAMLLint.txt
113
+ ZephyrModuleFile.txt
Original file line number Diff line number Diff line change @@ -1785,6 +1785,23 @@ def run(self):
1785
1785
self .failure (f"Missing { maintainers_file } entry for: \" { area } \" " )
1786
1786
1787
1787
1788
+ class ZephyrModuleFile (ComplianceTest ):
1789
+ """
1790
+ Check that no zephyr/module.yml file has been added to the Zephyr repository
1791
+ """
1792
+ name = "ZephyrModuleFile"
1793
+ doc = "Check that no zephyr/module.yml file has been added to the Zephyr repository."
1794
+
1795
+ def run (self ):
1796
+ module_files = [ZEPHYR_BASE / 'zephyr' / 'module.yml' ,
1797
+ ZEPHYR_BASE / 'zephyr' / 'module.yaml' ]
1798
+
1799
+ for file in module_files :
1800
+ if os .path .exists (file ):
1801
+ self .failure ("A zephyr module file has been added to the Zephyr repository" )
1802
+ break
1803
+
1804
+
1788
1805
class YAMLLint (ComplianceTest ):
1789
1806
"""
1790
1807
YAMLLint
You can’t perform that action at this time.
0 commit comments