-
Notifications
You must be signed in to change notification settings - Fork 515
Display error on valid JSDoc syntax #59
Comments
I can accept pull-request for this behavior. |
@mdevils I'll do it if you assign it to me ;-) |
If you've got a good idea on implementing this, I would be glad to accept a pull-request ;-) |
Actually, I think we could parse it more accurately and store result in Function* nodes. Is it possible? |
Not sure about storing in Function* nodes, but I'm totally agree that we need better JSDoc parsing approach. Code at #75 looks messy, makes me unhappy to accept pull-request)). We need a good jsdoc parser with a good object-representation. With or without external libraries. |
Okay, I'll to use some jsdoc parsers tonight. I think we should accept all kinds of jsdoc types? http://orgachem.github.io/jsdoctypeparser/ |
I'm not sure about type parsing. Do we need it? |
I think it should be pretty useful to check it up as fast as possible. Afais lint-like tools pretty useful when they can check as much as they can to prevent buggy behaviour of software. Probably JSCS is not a place to check doctypes and type of resulting value but it's another question. |
What's the verdict on this? @mikesherov @zxqfox Should we deprecate this rule within jscs and inform users to use https://github.com/jscs-dev/jscs-jsdoc instead? I can create another issue for that task and put a PR together if you guys agree. |
@mrjoelkemp probably yes. I've fixed this in plugin and I'm looking for issues. |
Closes jscs-devgh-638 Fixes jscs-dev#59
Closes jscs-devgh-638 Fixes jscs-dev#59
Closes jscs-devgh-638 Fixes jscs-dev#59
yes, we should deprecate in 1.7, remove in 2.0 On Thu, Sep 18, 2014 at 11:37 PM, Alex Yaroshevich <notifications@github.com
Mike Sherov |
Closes jscs-devgh-638 Fixes jscs-dev#59
Closes jscs-devgh-638 Fixes jscs-dev#59
Invalid JSDoc @param at ./js/components/validator.userphone.js
429 | * @params {...*} [args]
---------------^
This is message is incorrect because this is syntax allowed by jsdoc.
http://usejsdoc.org/tags-param.html - search
Allows a parameter to be repeated
The text was updated successfully, but these errors were encountered: