fossasia/loklak_webclient

View on GitHub
app/js/components/angular-idle.js

Summary

Maintainability
C
1 day
Test Coverage

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

      function($interval, $log, $rootScope, $document, Keepalive, LocalStorage, $window) {
        var state = {
          idle: null,
          timeout: null,
          idling: false,
Severity: Major
Found in app/js/components/angular-idle.js - About 5 hrs to fix

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

    /*** Directives and services for responding to idle users in AngularJS
    * @author Mike Grabski <me@mikegrabski.com>
    * @version v1.1.0
    * @link https://github.com/HackedByChinese/ng-idle.git
    * @license MIT
    Severity: Minor
    Found in app/js/components/angular-idle.js - About 4 hrs to fix

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

            function($rootScope, $log, $interval, $http) {
      
              var state = {
                ping: null
              };
      Severity: Minor
      Found in app/js/components/angular-idle.js - About 1 hr to fix

        Function $get has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

              function($interval, $log, $rootScope, $document, Keepalive, LocalStorage, $window) {
        Severity: Major
        Found in app/js/components/angular-idle.js - About 50 mins to fix

          There are no issues that match your filters.

          Category
          Status