You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor package-dependencies tool to support customizable library counting
- Modified the PackageDependencyExtractor class to allow dynamic specification of libraries to count, enhancing flexibility.
- Updated the logic for counting library occurrences to utilize a more generic approach, accommodating any specified libraries.
- Enhanced the Markdown output and console logging to reflect the new customizable library counts.
- Revised README.md to document the new `--libraries` option for users.
- Added a sample JSONL file for testing and updated tests to validate the new functionality.
@@ -226,10 +226,12 @@ class PackageDependencyExtractor {
226
226
markdownContent+='These counts represent the number of dependencies where the `targetClass` field in the JSONL data contains each specific library name. This helps quantify how many times your application code depends on classes from these libraries, which is useful for identifying vulnerability exposure.\n\n';
Copy file name to clipboardExpand all lines: test-output.md
+59-9Lines changed: 59 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,24 @@
2
2
3
3
This document lists all base packages that the project depends on.
4
4
5
+
## Specific Library Counts
6
+
7
+
These counts represent the number of dependencies where the `targetClass` field in the JSONL data contains each specific library name. This helps quantify how many times your application code depends on classes from these libraries, which is useful for identifying vulnerability exposure.
8
+
9
+
| Library | Count |
10
+
|---------|-------|
11
+
| Spring | 1 |
12
+
| Hibernate | 1 |
13
+
| Jetty | 0 |
14
+
5
15
## Base Packages
6
16
7
17
### External Dependencies
8
18
9
-
-`java.lang`
19
+
-`cryptix.provider`
20
+
-`org.apache`
21
+
-`org.hibernate`
22
+
-`org.springframework`
10
23
11
24
### Internal Packages
12
25
@@ -15,30 +28,67 @@ This document lists all base packages that the project depends on.
0 commit comments