Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: Source/devtools/scripts/jsdoc-validator/tests/function.js

Issue 301383002: DevTools: [JsDocValidator] Check that param lists are completely annotated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 function badFuncNoAnnotation() { 1 function badFuncNoAnnotation() {
2 return 1; // ERROR - no @return annotation. 2 return 1; // ERROR - no @return annotation.
3 } 3 }
4 4
5 /** 5 /**
6 * @return {number} 6 * @return {number}
7 */ 7 */
8 function badFuncAnnotatedButNoReturn() // ERROR - no @return annotation. 8 function badFuncAnnotatedButNoReturn() // ERROR - no @return annotation.
9 { 9 {
10 } 10 }
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 * @returns {number} 284 * @returns {number}
285 */ 285 */
286 badMethodReturnsShouldBeAbsent: function() // ERROR - @returns, should be ab sent 286 badMethodReturnsShouldBeAbsent: function() // ERROR - @returns, should be ab sent
287 { 287 {
288 var foo = 1; 288 var foo = 1;
289 } 289 }
290 } 290 }
291 291
292 return new TypeThree(); 292 return new TypeThree();
293 } 293 }
294
295
296 /**
297 * @param {string} a
298 * @param {string} b
299 * @param {string} c
300 */
301 function funcParamsOK1(a, b, c) {}
302
303 function funcParamsOK2(a, b, c) {}
304
305 /**
306 * @param {string} a
307 * @param {string} c
308 */
309 function funcParamsMissingTag1(a, b, c) {}
310
311 /**
312 * @param {string} a
313 */
314 function funcParamsMissingTag2(a, b, c) {}
315
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698