1- # jsdoc
1+ # jscs- jsdoc
22[ ![ Build Status] ( https://secure.travis-ci.org/zxqfox/jscs-jsdoc.svg?branch=master )] ( http://travis-ci.org/zxqfox/jscs-jsdoc )
33[ ![ NPM version] ( https://badge.fury.io/js/jscs-jsdoc.png )] ( http://badge.fury.io/js/jscs-jsdoc )
44[ ![ Dependency Status] ( https://david-dm.org/zxqfox/jscs-jsdoc.png )] ( https://david-dm.org/zxqfox/jscs-jsdoc )
55
6- ` jscs- jsdoc` plugin for [ jscs] ( https://github.com/mdevils/node-jscs/ ) .
6+ ` jsdoc ` plugin for [ jscs] ( https://github.com/mdevils/node-jscs/ ) .
77
88## Friendly packages
99
@@ -16,7 +16,7 @@ Install it globally if you are using globally installed `jscs`
1616
1717 npm -g install jscs-jsdoc
1818
19- Or install it into your project
19+ But better install it into your project
2020
2121 npm install jscs-jsdoc --save-dev
2222
@@ -49,12 +49,11 @@ Values:
4949 - "checkRedundantParams" reports redundant params in jsdoc
5050 - "checkReturnTypes" tries to compare function result type with declared type in jsdoc
5151 - "requireReturnTypes" ensures returns in jsdoc contains type
52+ - "checkTypes" reports invalid types
5253 - "checkRedundantReturns" reports redundant returns in jsdoc
53- - "checkTypes" reports invalid types in jsdoc
54- - "enforce" reports empty and jsdoc
55- - "strict" reports for invalid jsdoc definitions
56- - "leadingUnderscoreAccess" reports not set @access for ` _underscored ` function names
57- - "trailingUnderscoreAccess" reports not set @access for ` underscored ` _ function names
54+ - "checkRedundantAccess" reports redundant access declarations
55+ - "leadingUnderscoreAccess" ensures access declaration is set for ` _underscored ` function names
56+ - "enforceExistence" ensures jsdoc declarations exists for functions and methods
5857
5958#### Example
6059
@@ -64,12 +63,12 @@ Values:
6463 " checkRedundantParams" : true ,
6564 " requireParamTypes" : true ,
6665 " checkReturnTypes" : true ,
67- " checkRedundantReturns" : true ,
6866 " requireReturnTypes" : true ,
6967 " checkTypes" : true ,
70- " strict" : true ,
71- " enforce" : true ,
72- " leadingUnderscoreAccess" : ' private'
68+ " checkRedundantReturns" : true ,
69+ " checkRedundantAccess" : true ,
70+ " leadingUnderscoreAccess" : " private" ,
71+ " enforceExistence" : true
7372}
7473```
7574
@@ -103,6 +102,10 @@ _add: function(message, line, column) {
103102 * @returns {String}
104103 */
105104_add : function () {
105+ if (true ) {
106+ return false ;
107+ }
108+ return 15 ;
106109}
107110```
108111
@@ -120,9 +123,9 @@ Download and include `jscs-jsdoc-browser.js` into your page just after `jscs-bro
120123<script >
121124 var checker = new JscsStringChecker ();
122125 checker .registerDefaultRules ();
123- checker .configure ({' jsDoc' : {/* ...*/ }});
126+ checker .configure ({' jsDoc' : {/* ... */ }});
124127 var errors = checker .checkString (' var x, y = 1;' );
125- errors .getErrorList ().forEach (function (error ) {
128+ errors .getErrorList ().forEach (function (error ) {
126129 console .log (errors .explainError (error));
127130 });
128131 </script >
0 commit comments