Space after keywords superset rule (nested required/allowed) #181
Space after keywords superset rule (nested required/allowed) #181
Conversation
This guy – https://github.com/marklog must be really surprised :-). Will check this out in the weekend, but it looks like we should move it to another branch. |
Thanks as always for contributing! Yeah, definitely move to a branch, but also, a PR that would be acceptable here has to be the base implementation of the translation layer. Meaning: |
I suggest another approach: mapping. What we get: Flawbacks: (I'm about implementation) |
Another drawback is that lots of the sniffs are basically duplicated code of each other, creating more maintenance work. Mike On Fri, Jan 17, 2014 at 4:35 PM, Марат Дулин notifications@github.com
|
I actually prefer the format in #182, but both of them are half-baked examples to discuss how the old rules can be mapped back. |
I like 182 as well. I assume true is require, false is disallow, and no value (or null) is no preference? Speaking of which, we need ability to turn off a rule. Imagine user wants to use jQuery preset except one rule. Null value for a rule should disable it. Thoughts? Mike On Fri, Jan 17, 2014 at 8:47 PM, Nick Schonning notifications@github.com
|
Depends. In most of cases we can share some code into separate modules. But having little modules for rules, one for each little behavior, makes development way easier. |
I've updated this and #182 with a map back to the old rules but using
💯 |
we need ability to turn off a rule+1 @nschonni i appreciate the effort but we really need to agree on the new format (if we would do that) first, i would hate if all of time spent on this would be for nothing. Original ticket was not only about changing value of existing rules but also to make them more consistent with each other. Also i wouldn't want to deprecated anything at this point, but provide layer on top, but again, it would depend on the new format, maybe we even should create a different documentation for it. |
This is throw away proof of concept code, so feel free to close it if you want. |
@nschonni perhaps i sounded a bit dismissive, we might go with this approach, i don't know frankly, but in any case it's good to provide a proof of concept |
db9f580
to
2fa147c
Compare
@nschonni thanks again for doing this work way back when. We're going to take config in a new direction, so closing this for now. Once a new issue is published for it, we'll ping you so you can help us bikeshed :-) |
DO NOT MERGE
Sample aggregate rule example from #136
TODO:
/cc @markelog