@zombie raised this in issue #80: rules can only have an object name and a property name. Longer specifiers are not supported, and its a little confusing.
E.G The rule "foo.bar" matches:
foo.bar
a.foo.bar
foo.bar.b
a.b.foo.bar.c
...etc
I'm not sure how useful longer rules are but the current situation is a little confusing. We should either:
be more explicit about the limitation (easy)
find a way to support n-length rules ( hard)
I started an approach of searching on AST trees, i.e. you generate AST from the rule, and then match the entire tree. But it gets super complicated very quickly and Im not sure how useful this is. At this stage I'm considering abandoning the "javascript-like" rule format and going back to explicit rules, just to make tool usage more clear...
@zombie raised this in issue #80: rules can only have an object name and a property name. Longer specifiers are not supported, and its a little confusing.
E.G The rule "foo.bar" matches: foo.bar a.foo.bar foo.bar.b a.b.foo.bar.c ...etc
I'm not sure how useful longer rules are but the current situation is a little confusing. We should either:
I started an approach of searching on AST trees, i.e. you generate AST from the rule, and then match the entire tree. But it gets super complicated very quickly and Im not sure how useful this is. At this stage I'm considering abandoning the "javascript-like" rule format and going back to explicit rules, just to make tool usage more clear...