-
Notifications
You must be signed in to change notification settings - Fork 63
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
Refactor loadAndValidateOptions
p3: Add config validation
#1307
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.
LGTM, just a few nits
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.
Just one nit to prevent unnecessary IF nesting, but otherwise lgtm!
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.
lgtm!
Description and Context
Relies on: HubSpot/hubspot-local-dev-lib#222
In this PR, I've added validation when loading the configuration file. This involves creating a
NO_VALIDATE_LIST
for certain commands, likehs init
, that will fail upon validation. If there's a more elegant solution to the problem, I'm all ears!Screenshots
TODO
Who to Notify
@brandenrodgers @camden11 @joe-yeager