1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409
|
/tests/document.js:1: ERROR - Access to "document" property of global object is disallowed
document.bar();
^
/tests/document.js:2: ERROR - Access to "document" property of global object is disallowed
window.document.bar();
^
/tests/document.js:5: ERROR - Access to "document" property of global object is disallowed
document();
^
/tests/document.js:6: ERROR - Access to "document" property of global object is disallowed
var x = window.document;
^
/tests/document.js:24: ERROR - Access to "document" property of global object is disallowed
document.bar();
^
/tests/document.js:25: ERROR - Access to "document" property of global object is disallowed
document();
^
/tests/document.js:26: ERROR - Access to "document" property of global object is disallowed
var inner = document + bar;
^
/tests/document.js:47: ERROR - Access to "document" property of global object is disallowed
document;
^
/tests/document.js:48: ERROR - Access to "document" property of global object is disallowed
window.document;
^
/tests/document.js:53: ERROR - Access to "document" property of global object is disallowed
var z = document.document;
^
/tests/document.js:54: ERROR - Access to "document" property of global object is disallowed
var bar = window + window.document;
^
/tests/document.js:56: ERROR - Access to "document" property of global object is disallowed
self.document = bar;
^
/tests/document.js:57: ERROR - Access to "addEventListener" property of global object is disallowed
self.addEventListener();
^
/tests/document.js:58: ERROR - Access to "removeEventListener" property of global object is disallowed
self.removeEventListener();
^
/tests/document.js:59: ERROR - Access to "requestAnimationFrame" property of global object is disallowed
self.requestAnimationFrame();
^
/tests/document.js:60: ERROR - Access to "cancelAnimationFrame" property of global object is disallowed
window.cancelAnimationFrame();
^
/tests/document.js:61: ERROR - Access to "getSelection" property of global object is disallowed
getSelection();
^
/tests/function.js:1: ERROR - @return annotation is required for API functions that return value
function badFuncNoAnnotation() {
^
/tests/function.js:8: ERROR - @return annotation found, yet function does not return value
function badFuncAnnotatedButNoReturn() // ERROR - no @return annotation.
^
/tests/function.js:15: ERROR - @return annotation found, yet function does not return value
function badFuncAnnotatedButNoReturnValue() // ERROR - no returned value.
^
/tests/function.js:29: ERROR - invalid return type annotation found - should be "@return {<type>}"
* @returns {number}
^
/tests/function.js:37: ERROR - invalid return type annotation found - should be "@return {<type>}"
* @return number
^
/tests/function.js:45: ERROR - Invalid @param annotation found - should be "@param {<type>} paramName"
* @param number foo
^
/tests/function.js:46: ERROR - Invalid @param annotation found - should be "@param {<type>} paramName"
* @param bar
^
/tests/function.js:48: ERROR - @return annotation is required for API functions that return value
function badParamAnnotationsFunc(foo, bar) // ERROR - @param's should be well-formed
^
/tests/function.js:55: ERROR - invalid return type annotation found - please remove, as function does not return value
* @returns {number}
^
/tests/function.js:63: ERROR - invalid return type annotation found - please remove, as function does not return value
* @returns {number}
^
/tests/function.js:80: ERROR - @return annotation is required for API functions that return value
badApiMethodNoAnnotation: function() // ERROR - public method.
^
/tests/function.js:97: ERROR - @this annotation is required for functions referencing 'this'
/**
^
/tests/function.js:126: ERROR - @return annotation found, yet function does not return value
badMethodDoesNotReturnValue: function() // ERROR - does not return value.
^
/tests/function.js:134: ERROR - @return annotation found, yet function does not return value
badMethodDoesNotReturn: function() // ERROR - does not return.
^
/tests/function.js:140: ERROR - invalid return type annotation found - should be "@return {<type>}"
* @returns {number}
^
/tests/function.js:148: ERROR - invalid return type annotation found - please remove, as function does not return value
* @returns {number}
^
/tests/function.js:156: ERROR - invalid return type annotation found - please remove, as function does not return value
* @returns {number}
^
/tests/function.js:176: ERROR - @return annotation is required for API functions that return value
badApiMethodNoAnnotation: function() // ERROR - public method.
^
/tests/function.js:197: ERROR - @return annotation found, yet function does not return value
badMethodDoesNotReturnValue: function() // ERROR - does not return value.
^
/tests/function.js:205: ERROR - @return annotation found, yet function does not return value
badMethodDoesNotReturn: function() // ERROR - does not return.
^
/tests/function.js:211: ERROR - invalid return type annotation found - should be "@return {<type>}"
* @returns {number}
^
/tests/function.js:219: ERROR - invalid return type annotation found - please remove, as function does not return value
* @returns {number}
^
/tests/function.js:227: ERROR - invalid return type annotation found - please remove, as function does not return value
* @returns {number}
^
/tests/function.js:247: ERROR - invalid return type annotation found - should be "@return {<type>}"
* @returns {number}
^
/tests/function.js:268: ERROR - @return annotation is required for API functions that return value
badApiMethodNoAnnotation: function() // ERROR - public method.
^
/tests/function.js:289: ERROR - @return annotation found, yet function does not return value
badMethodDoesNotReturnValue: function() // ERROR - does not return value.
^
/tests/function.js:297: ERROR - @return annotation found, yet function does not return value
badMethodDoesNotReturn: function() // ERROR - does not return.
^
/tests/function.js:303: ERROR - invalid return type annotation found - should be "@return {<type>}"
* @returns {number}
^
/tests/function.js:311: ERROR - invalid return type annotation found - should be "@return {<type>}"
* @returns number
^
/tests/function.js:319: ERROR - invalid return type annotation found - please remove, as function does not return value
* @returns {number}
^
/tests/function.js:327: ERROR - invalid return type annotation found - please remove, as function does not return value
* @returns {number}
^
/tests/function.js:335: ERROR - Invalid @param annotation found - should be "@param {<type>} paramName"
* @param number foo
^
/tests/function.js:336: ERROR - Invalid @param annotation found - should be "@param {<type>} paramName"
* @param bar
^
/tests/function.js:338: ERROR - @return annotation is required for API functions that return value
badMethodParamAnnotations: function(foo, bar) // ERROR - @param's should be well-formed
^
/tests/function.js:357: ERROR - No @param JSDoc tag found for parameters: [b]
/**
^
/tests/function.js:363: ERROR - No @param JSDoc tag found for parameters: [b,c]
/**
^
/tests/proto.js:8: ERROR - No __proto__ assigned for type DerivedNoProto having @extends
* @extends {Base}
^
/tests/proto.js:10: ERROR - Type DerivedNoProto extends Base but does not properly invoke its constructor
DerivedNoProto = function() {}
^
/tests/proto.js:16: ERROR - Type DerivedBadProto extends Base but does not properly invoke its constructor
DerivedBadProto = function() {}
^
/tests/proto.js:19: ERROR - __proto__ value is not a prototype
__proto__: Base
^
/tests/proto.js:28: ERROR - __proto__ defined for interface InterfaceWithProto
__proto__: Base.prototype
^
/tests/proto.js:37: ERROR - No @extends annotation for ProtoNoExtends extending Base
__proto__: Base.prototype
^
/tests/proto.js:44: ERROR - Type ProtoNotSameAsExtends extends Base but does not properly invoke its constructor
ProtoNotSameAsExtends = function() {}
^
/tests/proto.js:47: ERROR - Supertype does not match Base declared in @extends for ProtoNotSameAsExtends (line 42)
__proto__: Object.prototype
^
/tests/proto.js:52: ERROR - No __proto__ assigned for type ProtoNotObjectLiteral having @extends
* @extends {Base}
^
/tests/proto.js:54: ERROR - Type ProtoNotObjectLiteral extends Base but does not properly invoke its constructor
ProtoNotObjectLiteral = function() {}
^
/tests/proto.js:56: ERROR - @extends found for type ProtoNotObjectLiteral but its prototype is not an object containing __proto__
ProtoNotObjectLiteral.prototype = Object;
^
/tests/proto.js:62: ERROR - Type DerivedNoSuperCall extends Base but does not properly invoke its constructor
DerivedNoSuperCall = function() {
^
/tests/proto.js:73: ERROR - Type DerivedBadSuperCall extends Base but does not properly invoke its constructor
DerivedBadSuperCall = function() {
^
/tests/proto.js:121: ERROR - No __proto__ assigned for type BadSetSubclass having @extends
* @extends {Set.<T>}
^
/tests/proto.js:124: ERROR - Type BadSetSubclass extends Set but does not properly invoke its constructor
var BadSetSubclass = function()
^
/tests/proto.js:135: ERROR - No __proto__ assigned for type NS.BadSubClass having @extends
* @extends {Base}
^
/tests/proto.js:137: ERROR - Type NS.BadSubClass extends Base but does not properly invoke its constructor
NS.BadSubClass = function() {}
^
/tests/this.js:19: ERROR - @this annotation is required for functions referencing 'this'
function badInnerCallback() {
^
/tests/this.js:24: ERROR - @this annotation is required for functions referencing 'this'
function badCallbackInCtor() {
^
/tests/this.js:54: ERROR - @this annotation is required for functions referencing 'this'
function badCallbackInMethod() {
^
/tests/this.js:73: ERROR - @this annotation is required for functions referencing 'this'
function badInnerCallback() {
^
/tests/this.js:78: ERROR - @this annotation is required for functions referencing 'this'
function badCallbackInCtor() {
^
/tests/this.js:98: ERROR - @this annotation is required for functions referencing 'this'
function badCallbackInMethod() {
^
/tests/this.js:121: ERROR - @this annotation is required for functions referencing 'this'
function badInnerCallback() {
^
/tests/this.js:126: ERROR - @this annotation is required for functions referencing 'this'
function badCallbackInCtor() {
^
/tests/this.js:146: ERROR - @this annotation is required for functions referencing 'this'
function badCallbackInMethod() {
^
/tests/this.js:153: ERROR - @this annotation found for function not referencing 'this'
function callbackNotReferencingThis() {
^
/tests/this.js:191: ERROR - Member function can only be bound to 'this' as the receiver
var badMemberBinding1 = this.memberTwo.bind(null); // ERROR - Member not bound to |this| receiver.
^
/tests/this.js:192: ERROR - Member function can only be bound to 'this' as the receiver
var badMemberBinding2 = this.memberTwo.bind(bar); // ERROR - Member not bound to |this| receiver.
^
/tests/this.js:217: ERROR - Receiver not specified for a function referencing 'this'
callbackWithThis(); // ERROR - No receiver.
^
/tests/this.js:218: ERROR - Receiver not specified for a function referencing 'this'
callbackWithThis.call(); // ERROR - No receiver.
^
/tests/this.js:219: ERROR - Receiver not specified for a function referencing 'this'
callbackWithThis.call(null); // ERROR - No receiver.
^
/tests/this.js:220: ERROR - Receiver not specified for a function referencing 'this'
callbackWithThis.apply(); // ERROR - No receiver.
^
/tests/this.js:221: ERROR - Receiver not specified for a function referencing 'this'
callbackWithThis.apply(null); // ERROR - No receiver.
^
/tests/this.js:222: ERROR - Receiver specified for a function not referencing 'this'
callbackNoThis.call(this); // ERROR - Function has no @this annotation.
^
/tests/this.js:223: ERROR - Receiver specified for a function not referencing 'this'
callbackNoThis.call(foo); // ERROR - Function has no @this annotation.
^
/tests/this.js:224: ERROR - Receiver specified for a function not referencing 'this'
callbackNoThis.apply(this); // ERROR - Function has no @this annotation.
^
/tests/this.js:225: ERROR - Receiver specified for a function not referencing 'this'
callbackNoThis.bind(this); // ERROR - Function has no @this annotation.
^
/tests/this.js:227: ERROR - Function referencing 'this' used as argument without a receiver. This check can be suppressed using @suppressReceiverCheck annotation on function declaration.
this.memberTwo(callbackWithThis); // ERROR - Used as argument with no bound receiver.
^
/tests/this.js:228: ERROR - Receiver not specified for a function referencing 'this'
this.memberTwo(callbackWithThis.bind(null, 2)); // ERROR - Used as argument with no bound receiver (null means "no receiver").
^
/tests/this.js:229: ERROR - Receiver specified for a function not referencing 'this'
this.memberTwo(callbackNoThis.bind(this)); // ERROR - Bound to a receiver but has no @this annotation.
^
/tests/this.js:230: ERROR - Receiver specified for a function not referencing 'this'
this.memberTwo(callbackNoThis.bind(foo)); // ERROR - Bound to a receiver but has no @this annotation.
^
/tests/this.js:237: ERROR - Function referencing 'this' used as argument without a receiver. This check can be suppressed using @suppressReceiverCheck annotation on function declaration.
array.forEach(callbackWithThis); // ERROR - No receiver.
^
/tests/this.js:238: ERROR - Function not referencing 'this' used as argument with a receiver. This check can be suppressed using @suppressReceiverCheck annotation on function declaration.
array.forEach(callbackNoThis, this); // ERROR - Receiver for callback with no @this annotation.
^
/tests/this.js:247: ERROR - Function not referencing 'this' used as argument with a receiver. This check can be suppressed using @suppressReceiverCheck annotation on function declaration.
element.addEventListener("click", callbackNoThis, this); // ERROR.
^
/tests/this.js:253: ERROR - Function referencing 'this' used as argument without a receiver. This check can be suppressed using @suppressReceiverCheck annotation on function declaration.
element.addEventListener("click", callbackWithThis, true); // ERROR.
^
/tests/this.js:254: ERROR - Function referencing 'this' used as argument without a receiver. This check can be suppressed using @suppressReceiverCheck annotation on function declaration.
element.addEventListener("click", callbackWithThis, false); // ERROR.
^
/tests/this.js:268: ERROR - @this annotation is required for functions referencing 'this'
function callbackReferencingThisNotAnnotated()
^
/tests/this.js:277: ERROR - @this annotation found for function not referencing 'this'
function callbackNotReferencingThisAnnotated()
^
Total errors: 102
|