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

Add extra config options #66

Merged
merged 4 commits into from
Oct 29, 2024
Merged

Conversation

nvnieuwk
Copy link
Collaborator

Adds two new configuration options:

  1. validation.failUnrecognisedHeaders which will fail when unrecognised headers have been detected in the samplesheet instead of emitting a warning
  2. validation.summary.hideParams which takes a list of parameters to exclude from the summary created by the plugin

@nvnieuwk nvnieuwk requested review from mirpedrol and awgymer October 22, 2024 14:41
@nvnieuwk
Copy link
Collaborator Author

Fixes #45, #31 and #7

Copy link
Collaborator

@mirpedrol mirpedrol left a comment

Choose a reason for hiding this comment

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

LGTM

def String processedHeaders = unusedHeaders.collect { "\t- ${it}" }.join("\n")
log.warn("Found the following unidentified headers in ${fileName}:\n${processedHeaders}" as String)
private static logUnrecognisedHeaders(String fileName) {
log.info("HEADERS: ${this.unrecognisedHeaders}" as String)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we don't need this, we already have the warning or error messages

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh yeah that was a debug statement that I left in, my bad 😁

@nvnieuwk nvnieuwk merged commit 4c4cd85 into 2.2.0-dev Oct 29, 2024
4 checks passed
@nvnieuwk nvnieuwk deleted the feature/extra-samplesheet-config branch October 29, 2024 09:45
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.

2 participants