-
Notifications
You must be signed in to change notification settings - Fork 30
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
SONARIAC-1856 Modify S7019: add EXEC alternatives and exceptions #4597
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have a look at my suggestions before merging.
rules/S7019/docker/rule.adoc
Outdated
[source,docker,diff-id=2,diff-type=noncompliant] | ||
---- | ||
FROM scratch | ||
ENTRYPOINT echo "Long script with chaining commands" \ | ||
&& echo "Welcome!" \ | ||
&& echo "Goodbye" | ||
---- | ||
|
||
[source,docker,diff-id=3,diff-type=noncompliant] | ||
---- | ||
FROM scratch | ||
ENTRYPOINT echo "Long script with chaining commands" \ | ||
&& echo "Welcome!" \ | ||
&& echo "Goodbye" | ||
---- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove the diff-id=3 noncompliant example.
Keep only the compliant one with the wrapper script, but add the relation to a non compliant one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah very good point! I didn't know we could link multiple compliant examples to a single non-compliant one. Way better!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not what I meant, sorry for the confusion.
I meant that diff-id and diff-type will be removed from the wrapper file solution.
Unfortunately we can only use one diff-id per unique example, so I we need to adress this in a follow up PR 😅
Co-authored-by: Jonas Wielage <[email protected]>
…into SONARIAC-1856
Quality Gate passed for 'rspec-tools'Issues Measures |
Quality Gate passed for 'rspec-frontend'Issues Measures |
No description provided.