zeusjs/widgets

View on GitHub

Showing 5 of 46 total issues

File zs_text.js has 369 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'use strict';

describe( 'Directive: zsText', function () {

    // load the directive's module
Severity: Minor
Found in test/spec/zs_text.js - About 4 hrs to fix

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

            link: function ( scope, element ) {
                var wrap = $( element ),
                    icon = wrap.find( '[data-role="icon"]' ),
                    toggleState,
                    recalcStyles,
    Severity: Major
    Found in src/js/zs_simple_toggle.js - About 3 hrs to fix

      File zs_table_fragment.js has 271 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /**
       * Copyright 2015, Symantec Corporation
       * All rights reserved.
       *
       * This source code is licensed under the MIT license found in the
      Severity: Minor
      Found in src/js/zs_table_fragment.js - About 2 hrs to fix

        Function validationHandler has 44 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    scope.validationHandler = function () {
                        var textboxValue = element.find( 'input' )[ 0 ].value,
                            validationResult = scope.validateValue( { $val: textboxValue } );
        
                        scope.validation.msg = ' ';
        Severity: Minor
        Found in src/js/zs_text.js - About 1 hr to fix

          Function loadPrevNextPage has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  scope.loadPrevNextPage = function () {
                      var promise,
                          pageState = '';
          
                      loadMaskElement.show();
          Severity: Minor
          Found in src/js/zs_table_fragment.js - About 1 hr to fix
            Severity
            Category
            Status
            Source
            Language