Closed SBoudrias closed 9 years ago
:+1:
Might this be a way? I have a pull request ready if you want : https://github.com/j3lte/doctor/commit/d82e2898243929299799911c2b6ab961a21f1c1e
@j3lte It's a good start. We'll want to log each result lines as soon as they are ready. And there's some stylistic issue we'd discuss in a PR.
Allright then I do not add the error
in the callback, so async will complete all tasks... That way every line is logged.
As for the style... I would suggest keeping the arrays, but putting them all in a separate .js file. (That's just my personal taste, or do you rather put them in a textfile? If so, do you have an example in some library?)
When the feature is ready, just send a PR. We'll discuss the rest over actual code.
@j3lte Do you plan on sending a PR, I'd like to move forward with this!
Stupid, I thought I already made a PR. This has both async, and templating in it. Will recreate the PR. I suggest pulling it into a feature branch and see what you can use...
Ok so now we need to:
Only supporting sync flow is pretty limiting (and not super future friendly). We should move to make every rule with a callback (even if they're not actually sync).