fosslight-scanner 2.1.8__py3-none-any.whl → 2.1.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -168,10 +168,12 @@ def correct_scanner_result(all_scan_item):
168
168
  try:
169
169
  remove_src_idx_list = []
170
170
  for idx_src, src_fileitem in enumerate(src_fileitems):
171
- src_fileitem.exclude = check_exclude_dir(src_fileitem.source_name_or_path, src_fileitem.exclude)
171
+ if check_package_dir(src_fileitem.source_name_or_path):
172
+ continue
172
173
  dup_flag = False
173
174
  for bin_fileitem in bin_fileitems:
174
- bin_fileitem.exclude = check_exclude_dir(bin_fileitem.source_name_or_path, bin_fileitem.exclude)
175
+ if check_package_dir(bin_fileitem.source_name_or_path):
176
+ continue
175
177
  if src_fileitem.source_name_or_path == bin_fileitem.source_name_or_path:
176
178
  dup_flag = True
177
179
  src_all_licenses_non_empty = all(oss_item.license for oss_item in src_fileitem.oss_items)
@@ -202,14 +204,12 @@ def correct_scanner_result(all_scan_item):
202
204
  return all_scan_item
203
205
 
204
206
 
205
- def check_exclude_dir(source_name_or_path, file_item_exclude):
206
- if file_item_exclude:
207
- return True
208
- _exclude_dirs = ["venv", "node_modules", "Pods", "Carthage"]
209
- exclude = False
207
+ def check_package_dir(source_name_or_path):
208
+ _package_dirs = ["venv", "node_modules", "Pods", "Carthage"]
209
+ is_pkg = False
210
210
 
211
- for exclude_dir in _exclude_dirs:
212
- if exclude_dir in source_name_or_path.split(os.path.sep):
213
- exclude = True
211
+ for package_dir in _package_dirs:
212
+ if package_dir in source_name_or_path.split(os.path.sep):
213
+ is_pkg = True
214
214
  break
215
- return exclude
215
+ return is_pkg
@@ -25,7 +25,6 @@ from fosslight_util.set_log import init_log
25
25
  from fosslight_util.timer_thread import TimerThread
26
26
  import fosslight_util.constant as constant
27
27
  from fosslight_util.output_format import check_output_formats_v2
28
- from fosslight_prechecker._precheck import run_lint as prechecker_lint
29
28
  from fosslight_util.cover import CoverItem
30
29
  from fosslight_util.oss_item import ScannerItem
31
30
  from fosslight_util.output_format import write_output_file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fosslight-scanner
3
- Version: 2.1.8
3
+ Version: 2.1.9
4
4
  Summary: FOSSLight Scanner
5
5
  Home-page: https://github.com/fosslight/fosslight_scanner
6
6
  Download-URL: https://github.com/fosslight/fosslight_scanner
@@ -21,9 +21,9 @@ Requires-Dist: progress
21
21
  Requires-Dist: pyyaml
22
22
  Requires-Dist: beautifulsoup4
23
23
  Requires-Dist: fosslight-util<3.0.0,>=2.1.12
24
- Requires-Dist: fosslight-source<3.0.0,>=2.1.4
24
+ Requires-Dist: fosslight-source<3.0.0,>=2.1.12
25
25
  Requires-Dist: fosslight-dependency<5.0.0,>=4.1.3
26
- Requires-Dist: fosslight-binary<6.0.0,>=5.1.2
26
+ Requires-Dist: fosslight-binary<6.0.0,>=5.1.9
27
27
  Requires-Dist: fosslight-prechecker<5.0.0,>=4.0.0
28
28
 
29
29
  <!--
@@ -4,12 +4,12 @@ fosslight_scanner/_help.py,sha256=-Dqgn1inH26614GjrIe8I5cdEziuAxTtwrUdtTkrpjQ,30
4
4
  fosslight_scanner/_parse_setting.py,sha256=SoIEoPGlFXAp6__eEFEMIPYPoKLvmqxXF5X_C_uFiVI,2468
5
5
  fosslight_scanner/_run_compare.py,sha256=zmzX-FIvWCSkwPvEA3iHfVpyg6QDGUCpw3tJuGLdPWM,10657
6
6
  fosslight_scanner/cli.py,sha256=C4YNPVJJ-Ezj_6xe8k9QbIrf5V44GXbHWCGzR2FMcV8,6547
7
- fosslight_scanner/common.py,sha256=0LgXlGOJVB0kDeZ-1VeHEErArh7TgXkwEAmYAL9q93I,8465
8
- fosslight_scanner/fosslight_scanner.py,sha256=MIjKJ_HHyKKlh3HhuTtuezxTmX9guDWYDgjdXZP3IPU,21001
7
+ fosslight_scanner/common.py,sha256=FyEoqVsIZ4pRIlHRXZES8PYaYfy3PEmUaOn02YSuuYU,8377
8
+ fosslight_scanner/fosslight_scanner.py,sha256=TLMzzXjjPFAzrdS50ruqADKF8Shkf429O2BQeinkxPM,20930
9
9
  fosslight_scanner/resources/bom_compare.html,sha256=VocJ9bDmQQOwfGyvXatPZ4W-QddO-IlsAvKdO0nZ7pA,2240
10
- fosslight_scanner-2.1.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
- fosslight_scanner-2.1.8.dist-info/METADATA,sha256=Ee5RYpuVUGR4ra07tmUcq8_6U14jF0AL1FuJWJFwJJ0,7821
12
- fosslight_scanner-2.1.8.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
13
- fosslight_scanner-2.1.8.dist-info/entry_points.txt,sha256=dl7AA0_Jqnq0NHuCEaxcJFgstLw3sod_-FGtcgZuJbs,104
14
- fosslight_scanner-2.1.8.dist-info/top_level.txt,sha256=43_xLb5KYpy8wOU1H2Wd2fEsWBY7Dg6ZEJJXkfT64Ak,18
15
- fosslight_scanner-2.1.8.dist-info/RECORD,,
10
+ fosslight_scanner-2.1.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
+ fosslight_scanner-2.1.9.dist-info/METADATA,sha256=y1f4kwBG6-smcAnnPVzKL_fAktgLYh_XwRftcFvBMMw,7822
12
+ fosslight_scanner-2.1.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
13
+ fosslight_scanner-2.1.9.dist-info/entry_points.txt,sha256=dl7AA0_Jqnq0NHuCEaxcJFgstLw3sod_-FGtcgZuJbs,104
14
+ fosslight_scanner-2.1.9.dist-info/top_level.txt,sha256=43_xLb5KYpy8wOU1H2Wd2fEsWBY7Dg6ZEJJXkfT64Ak,18
15
+ fosslight_scanner-2.1.9.dist-info/RECORD,,