Skip to content

Commit 13a5967

Browse files
committed
Remove third party src (nomos)
1 parent 816af95 commit 13a5967

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

+7
-37117
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: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,14 @@ Files: setup.cfg
2222
Copyright: 2021 LG Electronics
2323
License: Apache-2.0
2424

25-
Files: .gitignore
25+
Files: requirements.txt
2626
Copyright: 2021 LG Electronics
27-
License: Apache-2.0
27+
License: LicenseRef-3rd_party_licenses
2828

29-
Files: src/fosslight_dependency/third_party/askalono/*
30-
Copyright: 2018 Amazon.com, Inc. or its affiliates.
29+
Files: .gitignore
30+
Copyright: 2021 LG Electronics
3131
License: Apache-2.0
3232

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-
3733
Files: tests/test_gradle/*
3834
Copyright: 2017-2021 Google LLC.
3935
License: Apache-2.0

src/fosslight_dependency/_package_manager.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +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']
28+
ASKALONO_THRESHOLD = 0.7
3329

3430

3531
class PackageManager:
@@ -350,7 +346,7 @@ def check_license_name(license_txt, is_filepath=False):
350346
license_content = license_txt
351347

352348
detect_askalono = identify(license_content)
353-
if detect_askalono.score > 0.7:
349+
if detect_askalono.score > ASKALONO_THRESHOLD:
354350
license_name = detect_askalono.name
355351
return license_name
356352

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)