Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlackDuck advisor PoC #9627

Closed
wants to merge 5 commits into from

WIP! feat(black-duck): Allow overriding querying by purl

57f5acc
Select commit
Loading
Failed to load commit list.
Closed

BlackDuck advisor PoC #9627

WIP! feat(black-duck): Allow overriding querying by purl
57f5acc
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / detekt succeeded Dec 17, 2024 in 5s

3 new alerts

New alerts in code changed by this pull request

  • 3 warnings

See annotations below for details.

View all branch alerts.

Annotations

Check warning on line 83 in plugins/advisors/black-duck/src/main/kotlin/BlackDuck.kt

See this annotation in the file changed.

Code scanning / detekt

Unsafe calls on nullable types detected. These calls will throw a NullPointerException in case the nullable value is null. Warning

Calling !! on a nullable type will throw a NullPointerException at runtime in case the value is null. It should be avoided.

Check warning on line 39 in plugins/advisors/black-duck/src/main/kotlin/Purl.kt

See this annotation in the file changed.

Code scanning / detekt

Unsafe calls on nullable types detected. These calls will throw a NullPointerException in case the nullable value is null. Warning

Calling !! on a nullable type will throw a NullPointerException at runtime in case the value is null. It should be avoided.

Check warning on line 50 in plugins/advisors/black-duck/src/main/kotlin/Purl.kt

See this annotation in the file changed.

Code scanning / detekt

This call on a non-null reference may be reduced or removed. Some calls are intended to be called on nullable collection or text types (e.g. `String?`).When this call is used on a reference to a non-null type (e.g. `String`) it is redundant and will have no effect, so it can be removed. Warning

Replace isNullOrBlank with isBlank