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

Keep code location creation code only where its needed and some maintainability refactoring #1359

Conversation

andrian-sevastyanov
Copy link
Contributor

@andrian-sevastyanov andrian-sevastyanov commented Feb 7, 2025

Keep code location creation code only where its needed and some maintainability refactoring based on sonar feedback.

Sonar scan on which some of this is based: https://sonarcloud.io/project/issues?issueStatuses=OPEN%2CCONFIRMED&sinceLeakPeriod=true&branch=origin%2Ffeature%2Fscass-binary-container&id=com.blackduck.integration%3Adetect

@@ -101,13 +94,4 @@ private boolean isBlackDuckVersionValid() {
Optional<BlackDuckVersion> blackDuckVersion = blackDuckRunData.getBlackDuckServerVersion();
return blackDuckVersion.isPresent() && blackDuckVersion.get().isAtLeast(MIN_BLACK_DUCK_VERSION);
}

private String createContainerScanCodeLocationName() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this out of abstract class to the specific class where it's used: PreScassContainerScanStepRunner.
This will make it more likely that we remove unused code once pre-SCASS stuff starts going away.

@andrian-sevastyanov andrian-sevastyanov merged commit 13600dc into feature/scass-binary-container Feb 13, 2025
@andrian-sevastyanov andrian-sevastyanov deleted the refactor/andrians/scass-binary-container branch February 13, 2025 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants