FlipFlopWeekly/zori

View on GitHub

Showing 4 of 4 total issues

Function HomeController has 158 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function HomeController($scope, fireRef, FB_URL) {
            // Global variables initialisation
            $scope.fb_url           = FB_URL;
            $scope.newLink          = '';
            $scope.newLinkComment   = '';
Severity: Major
Found in source/js/modules/home/home-ctrl.js - About 6 hrs to fix

    Function link has 49 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                function link(scope, $elt, attrs) {
                    var timeoutId;
                    var $link = $elt.find('a');
    
                    function update() {
    Severity: Minor
    Found in source/js/modules/home/home-directives.js - About 1 hr to fix

      Function auth has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  var auth = new FirebaseSimpleLogin(appref, function(error, user) {
                      if (error) {
                          // An error occurred while attempting login
                          // TODO: error handler
                          console.log(error);
      Severity: Minor
      Found in source/js/modules/home/home-ctrl.js - About 1 hr to fix

        Function AdminController has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function AdminController($scope, fireRef) {
        
                    $scope.newLink = '';
                    $scope.nbLinks = 0;
        
        
        Severity: Minor
        Found in source/js/modules/admin/admin-ctrl.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language