-
Notifications
You must be signed in to change notification settings - Fork 91
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
feat: added configurable warning limits through .thresholdrc file #132
Conversation
152aed4
to
8276011
Compare
Codecov Report
@@ Coverage Diff @@
## master #132 +/- ##
=========================================
Coverage ? 92.84%
=========================================
Files ? 56
Lines ? 2109
Branches ? 0
=========================================
Hits ? 1958
Misses ? 151
Partials ? 0
Continue to review full report at Codecov.
|
8276011
to
8580597
Compare
Added @danhudlow to evaluate if this solution works for VPC. |
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.
This looks good but you need to add documentation for .thresholdrc
to the README.
8580597
to
5cc6bd1
Compare
5cc6bd1
to
dbe78c6
Compare
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.
Great work on this PR! I do have a number of changes to make before merging but the overall changes look good
dbe78c6
to
2c5869f
Compare
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 good! 👍
a09defa
to
78cee67
Compare
139ee86
to
9f1c421
Compare
- added code to process a .thresholdrc file to get warnings limit - used warning limit to set exit code to 1 and print a message if warning limit is exceeded - added validation on the user input from .thresholdrc to check if valid keys and values provided in .thresholdrc - set default limit to Number.MAX_VALUE if no .thresholdrc provided - added tests to test error handling for .thresholdrc file and expected output when warning limits exceeded - added test to check if error thrown when invalid JSON provided in .thresholdrc - refactored error printing in processConfiguration file into a printConfigErrors function - ran npm run fix to fix style - documented how to add a warnings limit in the README
9f1c421
to
21edbfc
Compare
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 good - nice work! 👍
# [0.19.0](v0.18.0...v0.19.0) (2020-02-10) ### Features * added configurable warning limits through .thresholdrc file ([#132](#132)) ([2c3a919](2c3a919))
🎉 This PR is included in version 0.19.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Changes:
Current user contract:
lint-openapi
command.Example output:
Error handling in .thresholdrc file
Warning limit exceeded message