Filter by:
File Violation Severity
appengine/genetics/js/cage.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/genetics/js/cage.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/genetics/js/cage.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/genetics/js/cage.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/genetics/js/cage.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/genetics/js/cage.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/genetics/js/cage.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/genetics/js/cage.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/genetics/js/cage.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/pond/js/avatar.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/pond/js/avatar.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/pond/js/avatar.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/pond/js/avatar.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/pond/js/avatar.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/pond/js/avatar.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/pond/js/avatar.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/pond/js/avatar.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
194
  var closest = Infinity;
195
  for (var i = 0, enemy; enemy = this.battle_.AVATARS[i]; i++) {
196
    if (enemy == this || enemy.dead) {
197
      continue;
198
    }
199
    var ex = enemy.loc.x;
200
    var ey = enemy.loc.y;
201
    // Pythagorean theorem to find range to enemy's centre.
202
    var range = Math.sqrt((ey - locY) * (ey - locY) +
203
                          (ex - locX) * (ex - locX));
204
    if (range >= closest) {
appengine/pond/js/avatar.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/pond/js/avatar.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
appengine/genetics/js/cage.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice