-
Notifications
You must be signed in to change notification settings - Fork 27
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
Allow warnings to be hidden #309
Allow warnings to be hidden #309
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.
Looks pretty neat! Can we get a feature test added? Can base it on features/hiding_errors.feature
?
Co-Authored-By: Andy Smith <contact@andymsmith.co.uk>
Co-Authored-By: Andy Smith <contact@andymsmith.co.uk>
Looks good to me from a code point of view. @EmmaJP / @micmath / @JamieKnightBBC - any thoughts/comments from you? |
Looks good to me. A handy feature which aligns things nicely. From a code perspective, and this is more a style thing than anything, there’s a line:
I’m not sure what exactly that value is and the condition being checked for. Should it be undefined? True, false, 0 etc. I’d consider making this more explicit to aid code readability and robustness. |
Thanks for your feedback :). I copied the existing function ( Its a reference to how the hide works in the setting, e.g.
|
@JamieKnightBBC Yeah, |
@JamieKnightBBC - happy to approve? |
Heyo, Good with me. Was a small style question. Good to have it match what everything else is doing :) J&L |
Gah, wrong account again. My fault for replying from my phone. blush |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Summary
Fix issue #303. Allow warnings to be hidden in the same way that errors can be hidden.
Details
I made the
addWarning
method work in the same way asaddError
. I also added a test.I added
Warnings hidden
to the output:Motivation and Context
Fix issue #303
How Has This Been Tested?
I added a test for the new code which is very similar to the test for hiding errors.
Types of changes
Checklist: