jscs-dev / jscs-jsdoc

JsDoc validation rules for jscs
MIT License
99 stars 35 forks source link

Breaking out the enforceExistence check into configurable sections #126

Closed mattvot closed 9 years ago

mattvot commented 9 years ago

Can now specify checking documentation existence for:

mattvot commented 9 years ago

Please, use this here with _ prefix for policy because there will be a conflict if somebody will use 2 different configurations at a time.

How do you access this._policy from enforceExistence when it is defined as a property of enforceExistence.configure?

When using this._policy for both enforceExistence and enforceExistence.configure it fails tests.

Maybe I'm misunderstanding the request, please help :)

qfox commented 9 years ago

@mattvot Sorry for a big delay. There were a bug in configuring validators, since now I've fixed that and the current master calls configure with the rule context (as well as validating function itself).

I hope you'll be fine if I finish this rule to push a release ;-)