File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,17 +226,17 @@ def _scan_filesystem_for_modules(directory: Path) -> list[str]:
226226 file uses complex DSL that text-based parsing cannot handle.
227227 """
228228 modules : list [str ] = []
229- _BUILD_FILES = ("build.gradle" , "build.gradle.kts" , "pom.xml" )
229+ build_files = ("build.gradle" , "build.gradle.kts" , "pom.xml" )
230230 for child in directory .iterdir ():
231231 if not child .is_dir () or child .name .startswith ("." ):
232232 continue
233- if any ((child / bf ).exists () for bf in _BUILD_FILES ):
233+ if any ((child / bf ).exists () for bf in build_files ):
234234 modules .append (child .name )
235235 # One level deeper for nested modules (connect/runtime)
236236 for grandchild in child .iterdir ():
237237 if not grandchild .is_dir () or grandchild .name .startswith ("." ):
238238 continue
239- if any ((grandchild / bf ).exists () for bf in _BUILD_FILES ):
239+ if any ((grandchild / bf ).exists () for bf in build_files ):
240240 rel = grandchild .relative_to (directory )
241241 modules .append (str (rel ).replace (os .sep , ":" ))
242242 return modules
You can’t perform that action at this time.
0 commit comments