eddiemoore/angular-spotify

View on GitHub

Showing 5 of 34 total issues

Function $get has 340 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      this.$get = ['$q', '$http', '$window', function ($q, $http, $window) {

        function NgSpotify () {
          this.clientId = settings.clientId;
          this.redirectUri = settings.redirectUri;
Severity: Major
Found in src/angular-spotify.js - About 1 day to fix

    File angular-spotify.js has 385 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    (function (window, angular, undefined) {
      'use strict';
    
      angular
        .module('spotify', [])
    Severity: Minor
    Found in src/angular-spotify.js - About 5 hrs to fix

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

      module.exports = function (grunt) {
      
        // Load grunt tasks automatically
        require('load-grunt-tasks')(grunt);
      
      
      Severity: Major
      Found in Gruntfile.js - About 2 hrs to fix

        Function login has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                  login: function () {
                    var deferred = $q.defer();
                    var that = this;
        
                    var w = 400,
        Severity: Minor
        Found in src/angular-spotify.js - About 1 hr to fix

          Function api has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                    api: function (endpoint, method, params, data, headers) {
          Severity: Minor
          Found in src/angular-spotify.js - About 35 mins to fix
            Severity
            Category
            Status
            Source
            Language