Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 12e8fb5

Browse files
ljharbqfox
authored andcommitted
Misc: Update jscs-jsdoc to 1.3.1
Closes gh-2009
1 parent f195caa commit 12e8fb5

2 files changed

Lines changed: 53 additions & 46 deletions

File tree

lib/rules/jsdoc.js

Lines changed: 52 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
*
1919
* ### checkAnnotations
2020
*
21-
* Ensures tag names are valid
21+
* Checks tag names are valid.
2222
*
2323
* There are 3 presets for `Closure Compiler`, `JSDoc3` and `JSDuck5`.
2424
*
25-
* By default it allows any tag of mixed set. You can pass `Object` to select
26-
* preset with `preset` field and add custom tags with `extra` field.
25+
* By default it allows any tag from any preset. You can pass `Object`
26+
* to select preset with `preset` field and add custom tags with `extra` field.
2727
*
2828
* Type: `Boolean` or `String` or `{"preset": String, "extra": Object}`
29-
* (see [tag values](#user-content-tag-values))
29+
* (see [tag values](#user-content-tag-values)).
3030
*
3131
* Values: `true`, `"closurecompiler"`, `"jsdoc3"`, `"jsduck5"`, `Object`
3232
*
@@ -99,7 +99,7 @@
9999
*
100100
* ### checkParamExistence
101101
*
102-
* Ensures all parameters are documented.
102+
* Checks all parameters are documented.
103103
*
104104
* Type: `Boolean`
105105
*
@@ -144,7 +144,7 @@
144144
*
145145
* ### checkParamNames
146146
*
147-
* Ensures param names in jsdoc and in function declaration are equal
147+
* Checks param names in jsdoc and in function declaration are equal.
148148
*
149149
* Type: `Boolean`
150150
*
@@ -182,7 +182,7 @@
182182
*
183183
* ### requireParamTypes
184184
*
185-
* Ensures params in jsdoc contains type
185+
* Checks params in jsdoc contains type.
186186
*
187187
* Type: `Boolean`
188188
*
@@ -218,7 +218,7 @@
218218
*
219219
* ### checkRedundantParams
220220
*
221-
* Reports redundant params in jsdoc
221+
* Reports redundant params in jsdoc.
222222
*
223223
* Type: `Boolean`
224224
*
@@ -254,8 +254,7 @@
254254
*
255255
* ### checkReturnTypes
256256
*
257-
* Reports discrepancies between the claimed in jsdoc and actual type if both
258-
* exist (code scan)
257+
* Checks for differences between the jsdoc and actual return types if both exist.
259258
*
260259
* Type: `Boolean`
261260
*
@@ -298,7 +297,7 @@
298297
*
299298
* ### checkRedundantReturns
300299
*
301-
* Report statements for functions with no return
300+
* Report statements for functions without return.
302301
*
303302
* Type: `Boolean`
304303
*
@@ -338,7 +337,7 @@
338337
*
339338
* ### requireReturnTypes
340339
*
341-
* Ensures returns in jsdoc contains type
340+
* Checks returns in jsdoc contains type
342341
*
343342
* Type: `Boolean`
344343
*
@@ -379,14 +378,14 @@
379378
*
380379
* ### checkTypes
381380
*
382-
* Reports invalid types for bunch of tags
381+
* Reports invalid types for bunch of tags.
383382
*
384-
* In `strictNativeCase` mode ensures that case of natives is the same as in this
383+
* The `strictNativeCase` mode checks that case of natives is the same as in this
385384
* list: `boolean`, `number`, `string`, `Object`, `Array`, `Date`, `RegExp`.
386385
*
387-
* In `capitalizedNativeCase` mode ensures that first letter in all native types
388-
* and primitives is uppercased except the case with `function` in google closure
389-
* format: `{function(...)}`
386+
* The `capitalizedNativeCase` mode checks that the first letter in all native
387+
* types and primitives is uppercased except the case with `function` in google
388+
* closure format: `{function(...)}`
390389
*
391390
* Type: `Boolean` or `String`
392391
*
@@ -455,7 +454,7 @@
455454
*
456455
* ### checkRedundantAccess
457456
*
458-
* Reports redundant access declarations
457+
* Reports redundant access declarations.
459458
*
460459
* Type: `Boolean` or `String`
461460
*
@@ -507,10 +506,11 @@
507506
*
508507
* ### leadingUnderscoreAccess
509508
*
510-
* Ensures access declaration is set for `_underscored` function names
509+
* Checks access declaration is set for `_underscored` function names
511510
*
512-
* Ignores a bunch of popular identifiers: `__filename`, `__dirname`, `__proto__`,
513-
* `__defineGetter__`, `super_`, `__constructor`, etc.
511+
* Ignores a bunch of popular identifiers:
512+
* `__filename`, `__dirname`, `__proto__`, `__defineGetter__`, `super_`,
513+
* `__constructor`, etc.
514514
*
515515
* Type: `Boolean` or `String`
516516
*
@@ -548,7 +548,7 @@
548548
*
549549
* ### enforceExistence
550550
*
551-
* Ensures jsdoc block exist
551+
* Checks jsdoc block exists.
552552
*
553553
* Type: `Boolean`, `String` or `Object`
554554
*
@@ -588,7 +588,7 @@
588588
*
589589
* ### requireHyphenBeforeDescription
590590
*
591-
* Ensures a param description has a hyphen before it (checks for `- `)
591+
* Checks a param description has a hyphen before it (checks for `- `).
592592
*
593593
* Type: `Boolean`
594594
*
@@ -625,7 +625,7 @@
625625
*
626626
* ### requireNewlineAfterDescription
627627
*
628-
* Ensures a doc comment description has padding newline
628+
* Checks a doc comment description has padding newline.
629629
*
630630
* Type: `Boolean`
631631
*
@@ -645,9 +645,9 @@
645645
*
646646
* ```js
647647
* /**
648-
* * @param {String} - message
648+
* * @param {String} msg - message
649649
* *\/
650-
* function method() {}
650+
* function method(msg) {}
651651
*
652652
* /**
653653
* * Description
@@ -657,9 +657,9 @@
657657
* /**
658658
* * Description
659659
* *
660-
* * @param {String} - message
660+
* * @param {String} msg - message
661661
* *\/
662-
* function method() {}
662+
* function method(msg) {}
663663
* ```
664664
*
665665
* ##### Invalid
@@ -675,7 +675,7 @@
675675
*
676676
* ### disallowNewlineAfterDescription
677677
*
678-
* Ensures a doc comment description has no padding newlines
678+
* Checks a doc comment description has no padding newlines.
679679
*
680680
* Type: `Boolean`
681681
*
@@ -695,9 +695,9 @@
695695
*
696696
* ```js
697697
* /**
698-
* * @param {String} - message
698+
* * @param {String} msg - message
699699
* *\/
700-
* function method() {}
700+
* function method(msg) {}
701701
*
702702
* /**
703703
* * Description
@@ -706,9 +706,9 @@
706706
*
707707
* /**
708708
* * Description
709-
* * @param {String} - message
709+
* * @param {String} msg - message
710710
* *\/
711-
* function method() {}
711+
* function method(msg) {}
712712
* ```
713713
*
714714
* ##### Invalid
@@ -719,13 +719,13 @@
719719
* *
720720
* * @param {String} message
721721
* *\/
722-
* function method() {}
722+
* function method(message) {}
723723
* ```
724724
*
725725
*
726726
* ### requireDescriptionCompleteSentence
727727
*
728-
* Ensures a doc comment description is a complete sentence.
728+
* Checks a doc comment description is a complete sentence.
729729
*
730730
* A complete sentence is defined as starting with an upper case letter and ending
731731
* with a period.
@@ -748,9 +748,9 @@
748748
*
749749
* ```js
750750
* /**
751-
* * @param {String} - message
751+
* * @param {String} msg - message
752752
* *\/
753-
* function method() {}
753+
* function method(msg) {}
754754
*
755755
* /**
756756
* * Description.
@@ -765,17 +765,17 @@
765765
* /**
766766
* * Description.
767767
* *
768-
* * @param {String} - message
768+
* * @param {String} msg - message
769769
* *\/
770-
* function method() {}
770+
* function method(msg) {}
771771
*
772772
* /**
773773
* * Description
774-
* * On multiple lines.
774+
* * on multiple lines are allowed.
775775
* *
776-
* * @param {String} - message
776+
* * @param {String} msg - message
777777
* *\/
778-
* function method() {}
778+
* function method(msg) {}
779779
* ```
780780
*
781781
* ##### Invalid
@@ -788,6 +788,14 @@
788788
* function method() {}
789789
*
790790
* /**
791+
* * Description
792+
* * On multiple lines should not start with an upper case.
793+
* *
794+
* * @param {String} - message
795+
* *\/
796+
* function method() {}
797+
*
798+
* /**
791799
* * description starting with a lower case letter.
792800
* * @param {String} message
793801
* *\/
@@ -809,7 +817,7 @@
809817
*
810818
* ### requireParamDescription
811819
*
812-
* Ensures a param description exists.
820+
* Checks a param description exists.
813821
*
814822
* Type: `Boolean`
815823
*
@@ -856,7 +864,7 @@
856864
*
857865
* ### requireReturnDescription
858866
*
859-
* Ensures a return description exists.
867+
* Checks a return description exists.
860868
*
861869
* Type: `Boolean`
862870
*
@@ -901,6 +909,5 @@
901909
* }
902910
* ```
903911
*
904-
*
905912
*/
906913
module.exports = require('jscs-jsdoc/lib/rules/validate-jsdoc');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"glob": "^5.0.1",
7373
"htmlparser2": "3.8.3",
7474
"js-yaml": "~3.4.0",
75-
"jscs-jsdoc": "1.2.0",
75+
"jscs-jsdoc": "^1.3.1",
7676
"jscs-preset-wikimedia": "~1.0.0",
7777
"jsonlint": "~1.6.2",
7878
"lodash": "~3.10.0",

0 commit comments

Comments
 (0)