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