-
Notifications
You must be signed in to change notification settings - Fork 119
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
Added preloading configuration and tree parsing + refactor Doctor
file
#920
Conversation
Doctor
file
if (!data.toFile().exists()) return "Skipping yaml validation. No file at path $data" | ||
return validateYaml(args, loadFile(data)) | ||
} | ||
fun validateYaml(args: IArgs.ICompanion, data: Path): String { |
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 is the only a proposal
WDYT?
fun validateYaml(args: IArgs.ICompanion, data: Path) =
if (!data.toFile().exists()) "Skipping yaml validation. No file at path $data"
else validateYaml(args, loadFile(data)) + preloadConfiguration(data, args is AndroidArgsCompanion)
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.
Sure, updated 👍
This is awesome! Great idea to preload the entire config. |
9973baa
to
5dd7bea
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 👍
Fixes #911 by adding preloading configuration and tree parsing + refactor
Doctor
fileTest Plan
Running command
firebase test android|ios doctor
orflank android|ios doctor
will show issue when cannot parse.yml
configuration (invalid example in root task).Previously doctor validates only basic
.yml
parsing, now it pre-load configuration and validate tree to catch more errorsChecklist