-
Notifications
You must be signed in to change notification settings - Fork 80
Logging improvement: detect.policy.check.fail.on.names (IDETECT-3941) #1425
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
Merged
shantyk
merged 24 commits into
master
from
dev/shanty/IDETECT-3941_policy_violation_logging_improvements
Jul 15, 2025
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
23c5b65
Improve detect.policy.check.fail.on.names improvement: part 1
shantyk e5f8f42
Modify checkPolicyBySeverity() so the output remains as is
shantyk bd38827
Improve detect.policy.check.fail.on.names: part 2
shantyk 01ac56c
Refactor to minimize repeated code
shantyk f69abb9
clean up separate severity exit status, keep as is
shantyk 762c0d5
Clean up TODO comments
shantyk 8f1b4dd
Refactoring
shantyk e0c831d
Fix issue with ExitCodeType enum
shantyk 392a02b
Rename parameters for readability
shantyk 617c619
Remove test case attempts in favour of manual test documented on conf…
shantyk e03eb4e
Address review comments: refactor to return ExitCodeRequest instead o…
shantyk 9b0f7fd
Address review comments around spacing and wildcart imports
shantyk 0a2e091
Update default winning exit code request
shantyk 8969a0b
Replace instances of exitCodePublisher.publishExitCode() that had a r…
shantyk b72374f
Fix test cases: remove duplicate priority exit code type
shantyk 3c69f44
Update getWinningExitCodeRequest()
shantyk 007bf6a
Merge branch 'master' into dev/shanty/IDETECT-3941_policy_violation_l…
shantyk c04f25d
Update failing test
shantyk 680056b
Create ExitCodeRequestWithCustomDescription class
shantyk c8e7ccd
Remove debug comment
shantyk 17594e0
Respect existing behaviour for detect.stateless.policy.check.fail.on.…
shantyk d915bf0
Add release note
shantyk 58ac3ef
Update release note wording
shantyk a3cea77
Refactor ExitCodeRequest
shantyk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...blackduck/integration/detect/lifecycle/shutdown/ExitCodeRequestWithCustomDescription.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.blackduck.integration.detect.lifecycle.shutdown; | ||
|
||
import com.blackduck.integration.detect.configuration.enumeration.ExitCodeType; | ||
|
||
public class ExitCodeRequestWithCustomDescription extends ExitCodeRequest { | ||
|
||
private String customDescription; | ||
public ExitCodeRequestWithCustomDescription(ExitCodeType exitCodeType, String reason) { | ||
super(exitCodeType); | ||
this.customDescription = reason; | ||
} | ||
|
||
@Override | ||
public String getReason() { | ||
return customDescription; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.