Files
codeql/javascript/ql/test/query-tests/JSDoc/UndocumentedParameter/tst.js
2018-08-02 17:53:23 +01:00

29 lines
357 B
JavaScript

/**
* NOT OK: Parameter y is not documented.
*
* @param x The first operand.
*/
function f(x, y) {
return x+y;
}
/**
* OK: Neither parameter is documented.
*/
function g(x, y) {
return x+y;
}
// NOT OK
/**
* @param {int} x
* @param {float} y
*/
var o = {
/**
* @param {String} x first argument.
*/
f : function(x, y) {
}
};