CleverStack/angular-seed

View on GitHub
app/modules/cs_modal/scripts/cs_modal_factory.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function open has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        modals.open = function ( obj, index, template, options, action ) {
          if (arguments.length < 5) {
            action   = options;
            options  = template;
            template = index;
Severity: Major
Found in app/modules/cs_modal/scripts/cs_modal_factory.js - About 2 hrs to fix

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

            modals.open = function ( obj, index, template, options, action ) {
    Severity: Minor
    Found in app/modules/cs_modal/scripts/cs_modal_factory.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status