jscs-dev / jscs-jsdoc

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

Both usage of `abstract` and `returns` properties #93

Closed tenorok closed 9 years ago

tenorok commented 9 years ago

Hello! I want to declare interface of abstract function, but I have a problem with both usage of abstract and returns properties.

Redundant return statement at ./code.js :
   476 |     * @abstract
   477 |     * @returns {Number}
---------------^
   478 |     */
   479 |    getPopupWidth: function() {},

It is bug?

qfox commented 9 years ago

@tenorok It is unexpected behaviour. ;-)

Feels like we need to skip checking this for @abstract declarations.

tenorok commented 9 years ago

Cool! :star2: