Skip to content

Commit 4b403f7

Browse files
committed
Remove third party src (nomos)
1 parent 816af95 commit 4b403f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3
-37118
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# Apply override to all files in the directory
22
tests/** linguist-vendored
3-
src/fosslight_dependency/third_party/** linguist-vendored

.reuse/dep5

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ Files: .gitignore
2626
Copyright: 2021 LG Electronics
2727
License: Apache-2.0
2828

29-
Files: src/fosslight_dependency/third_party/askalono/*
30-
Copyright: 2018 Amazon.com, Inc. or its affiliates.
31-
License: Apache-2.0
32-
33-
Files: src/fosslight_dependency/third_party/nomos/*
34-
Copyright: 2006-2009 Hewlett-Packard Development Company, L.P.
35-
License: LicenseRef-3rd_party_licenses
36-
3729
Files: tests/test_gradle/*
3830
Copyright: 2017-2021 Google LLC.
3931
License: Apache-2.0

src/fosslight_dependency/_package_manager.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,9 @@
2323

2424
logger = logging.getLogger(constant.LOGGER_NAME)
2525

26-
# binary url to check license text
27-
_license_scanner_linux = os.path.join('third_party', 'nomos', 'nomossa')
28-
_license_scanner_macos = os.path.join('third_party', 'askalono', 'askalono_macos')
29-
_license_scanner_windows = os.path.join('third_party', 'askalono', 'askalono.exe')
30-
3126
gradle_config = ['runtimeClasspath', 'runtime']
3227
android_config = ['releaseRuntimeClasspath']
33-
28+
ASKALONO_THRESHOLD = 0.7
3429

3530
class PackageManager:
3631
input_package_list_file = []
@@ -350,7 +345,7 @@ def check_license_name(license_txt, is_filepath=False):
350345
license_content = license_txt
351346

352347
detect_askalono = identify(license_content)
353-
if detect_askalono.score > 0.7:
348+
if detect_askalono.score > ASKALONO_THRESHOLD:
354349
license_name = detect_askalono.name
355350
return license_name
356351

src/fosslight_dependency/third_party/askalono/LICENSE

Lines changed: 0 additions & 202 deletions
This file was deleted.

src/fosslight_dependency/third_party/askalono/NOTICE

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/fosslight_dependency/third_party/askalono/README.md

Lines changed: 0 additions & 6 deletions
This file was deleted.
-4.52 MB
Binary file not shown.
-5.33 MB
Binary file not shown.

0 commit comments

Comments
 (0)