Skip to content

Commit a98bf2a

Browse files
authored
bug:SP-2020 Fixes undeclared component policy check summary
* bug:SP-2020 Fixes undeclared component policy check summary
1 parent ba50802 commit a98bf2a

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ docs/build
3030
!tests/data/*.json
3131
!docs/source/_static/*.json
3232
!scanoss-settings-schema.json
33+
.DS_Store

Diff for: CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010
- Upcoming changes...
1111

12+
## [1.19.1] - 2025-01-06
13+
### Fixed
14+
- Fixed undeclared components inspection
15+
1216
## [1.19.0] - 2024-11-20
1317
### Fixed
1418
- Check if legacy sbom file before post processing
@@ -418,4 +422,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
418422
[1.17.5]: https://github.com/scanoss/scanoss.py/compare/v1.17.4...v1.17.5
419423
[1.18.0]: https://github.com/scanoss/scanoss.py/compare/v1.17.5...v1.18.0
420424
[1.18.1]: https://github.com/scanoss/scanoss.py/compare/v1.18.0...v1.18.1
421-
[1.19.0]: https://github.com/scanoss/scanoss.py/compare/v1.18.1...v1.19.0
425+
[1.19.0]: https://github.com/scanoss/scanoss.py/compare/v1.18.1...v1.19.0
426+
[1.19.1]: https://github.com/scanoss/scanoss.py/compare/v1.19.0...v1.19.1

Diff for: src/scanoss/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
THE SOFTWARE.
2323
"""
2424

25-
__version__ = "1.19.0"
25+
__version__ = "1.19.1"

Diff for: src/scanoss/inspection/undeclared_component.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ def _get_summary(self, components: list) -> str:
8383
if self.sbom_format == 'settings':
8484
summary += (f'Add the following snippet into your `scanoss.json` file\n'
8585
f'\n```json\n{json.dumps(self._generate_scanoss_file(components), indent=2)}\n```\n')
86-
return summary
87-
88-
summary += (f'Add the following snippet into your `sbom.json` file\n'
86+
else:
87+
summary += (f'Add the following snippet into your `sbom.json` file\n'
8988
f'\n```json\n{json.dumps(self._generate_sbom_file(components), indent=2)}\n```\n')
90-
return summary
89+
90+
return summary
9191

9292
def _json(self, components: list) -> Dict[str, Any]:
9393
"""

0 commit comments

Comments
 (0)