jscs-jsdoc icon indicating copy to clipboard operation
jscs-jsdoc copied to clipboard

Support disabling rules in jsdoc

Open paladox opened this issue 9 years ago • 10 comments

Please support disabling rules in jsdoc like you can in jscs.

For example a rule could look like

"jsDoc": {
    "requireParamTypes": null
}

Since some preset set the default we should be allowed to override these like you can in jscs.

paladox avatar Nov 15 '15 17:11 paladox

:+1: Of course it should merge jsDoc rules from presets.

ricordisamoa avatar Nov 15 '15 18:11 ricordisamoa

Thanks for report, ye, we should do it like an age ago.

p.s. Would you like to implement this? I'm a little bit busy to do it completely by self but I can assist you.

qfox avatar Nov 15 '15 18:11 qfox

Hi @zxqfox I will give it ago. I am trying to compie the jscs files to this what should I look for settings wise to be able to do what this bug describes letting you enable and disable like you can in jscs.

paladox avatar Nov 17 '15 17:11 paladox

And where should I look. and what piece of code.

paladox avatar Nov 17 '15 17:11 paladox

@paladox JSCS passing options here: https://github.com/jscs-dev/jscs-jsdoc/blob/master/lib/rules/validate-jsdoc.js#L23

But I'd say it's somewhere in JSCS: https://github.com/jscs-dev/node-jscs/blob/master/lib/config/configuration.js#L67

qfox avatar Nov 17 '15 18:11 qfox

Thanks.

paladox avatar Nov 17 '15 18:11 paladox

Sorry for long delay, but I still not sure where we should do it. ;-(

I'm planning to try new jsdoctypeparser at wednesday and will look deeper into the problem.

qfox avatar Dec 07 '15 02:12 qfox

Thanks.

paladox avatar Dec 07 '15 07:12 paladox

duplicate of #61?

elijahsmith avatar Feb 01 '16 21:02 elijahsmith

Oh, not actually.

This issue about disabling some jsDoc rules predefined in preset. Like if your google preset have some jsDoc settings and you need to disable just one, instead of copy-pasting the whole configuration.

qfox avatar Feb 01 '16 21:02 qfox