Skip to content

Commit 278e22e

Browse files
Fix manifest file pattern
Signed-off-by: Wonjae Park <[email protected]>
1 parent 30d73bf commit 278e22e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/fosslight_source/_scan_item.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
_notice_filename = ['licen[cs]e[s]?', 'notice[s]?', 'legal', 'copyright[s]?', 'copying*', 'patent[s]?', 'unlicen[cs]e', 'eula',
1515
'[a,l]?gpl[-]?[1-3]?[.,-,_]?[0-1]?', 'mit', 'bsd[-]?[0-4]?', 'bsd[-]?[0-4][-]?clause[s]?',
1616
'apache[-,_]?[1-2]?[.,-,_]?[0-2]?']
17-
_manifest_filename = ['requirements\\.txt', 'setup\\.py', 'pyproject\\.toml', 'pnpm-lock\\.yaml', 'package\\.json',
18-
'pom\\.xml', 'build\\.gradle', 'pubspec\\.yaml', 'Podfile\\.lock', 'Package\\.resolved',
19-
'Cartfile\\.resolved', 'go\\.mod', 'packages\\.config', 'Chart\\.yaml', 'Cargo\\.toml']
17+
_manifest_filename = [r'.*\.pom$', r'package\.json$', r'setup\.py$', r'pubspec\.yaml$', r'.*\.podspec$', r'Cargo\.toml$']
2018
_exclude_filename = ["changelog", "config.guess", "config.sub", "changes", "ltmain.sh",
2119
"configure", "configure.ac", "depcomp", "compile", "missing", "makefile"]
2220
_exclude_extension = [".m4", ".in", ".po"]

0 commit comments

Comments
 (0)