hypery2k/angular-invocation-handler

View on GitHub

Showing 8 of 52 total issues

Function exports has 252 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 1 day to fix

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

      $get: ["$log", "$injector", "$window", "$location", "feedbackUI", "ngIHConfig", function ($log, $injector, $window, $location, feedbackUI, ngIHConfig) {

        var handler = {

          // The list of errors.
Severity: Major
Found in dist/angular-invocation-handler.js - About 3 hrs to fix

File Gruntfile.js has 255 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'use strict';

module.exports = function (grunt) {

  // Load grunt tasks automatically
Severity: Minor
Found in Gruntfile.js - About 2 hrs to fix

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

      $get: function ($log, $injector, $window, $location, feedbackUI, ngIHConfig) {

        var handler = {

          // The list of errors.
Severity: Major
Found in src/angular-invocation-handler.js - About 2 hrs to fix

Function resolveErrorCode has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

          resolveErrorCode: function (func, err, callback) {
            // This is a very limited error handler... you would probably want to check for user-friendly error messages
            // that were returned by the server, etc, etc, etc. Our original code contains a lot of checks and handling
            // of error messages to create the "perfect" error message for our users, you should probably do the same. :)
            if (err) {
Severity: Minor
Found in dist/angular-invocation-handler.js - About 1 hr to fix

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

module.exports = function (config) {
  'use strict';

  config.set({
    // enable / disable watching file and executing tests whenever any file changes
Severity: Minor
Found in karma.conf.js - About 1 hr to fix

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

      $get: function ($log, $injector, $window, $location, feedbackUI, ngIHConfig) {
Severity: Minor
Found in src/angular-invocation-handler.js - About 45 mins to fix

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

      $get: ["$log", "$injector", "$window", "$location", "feedbackUI", "ngIHConfig", function ($log, $injector, $window, $location, feedbackUI, ngIHConfig) {
Severity: Minor
Found in dist/angular-invocation-handler.js - About 45 mins to fix
Severity
Category
Status
Source
Language