kelsin/coretheloothound

View on GitHub

Showing 4 of 26 total issues

Function characterRace has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function characterRace(race_id) {
  var faction = function(race_id) {
    switch(parseInt(race_id)) {
    case 1:
    case 3:
Severity: Major
Found in app/helpers/character-race.js - About 2 hrs to fix

    Function faction has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var faction = function(race_id) {
        switch(parseInt(race_id)) {
        case 1:
        case 3:
        case 4:
    Severity: Minor
    Found in app/helpers/character-race.js - About 1 hr to fix

      Function exports has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function(defaults) {
        var app = new EmberApp(defaults, {
          // Add options here
        });
      
      
      Severity: Minor
      Found in ember-cli-build.js - About 1 hr to fix

        Function model has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          model() {
            var _this = this;
            var session = this.get('session');
        
            if (session.get('loggedIn')) {
        Severity: Minor
        Found in app/routes/application.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language