alv-ch-ng/selectpicker

View on GitHub

Showing 8 of 12 total issues

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

    module.exports = function (grunt) {
        require('load-grunt-tasks')(grunt, {
            pattern: ['grunt-*', '!grunt-template-jasmine-istanbul']
        });
        require('time-grunt')(grunt);
Severity: Major
Found in Gruntfile.js - About 1 day to fix

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

                link: function(scope, element, attrs, ngModelCtrl) {
                    var id = attrs.id+'-list';
                    var noneSelected=attrs.title || 'common_i18n_select_noneSelectedText';
                    var noSelection='common_i18n_select_noSelectionText';
                    var required = 'required' in attrs || false;
    Severity: Major
    Found in src/js/selectpicker.js - About 6 hrs to fix

      File example.app.js has 324 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      ;(function () {
      
        'use strict';
      
        /**
      Severity: Minor
      Found in src/example/example.app.js - About 3 hrs to fix

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

        ;(function () {
            'use strict';
        
            module.exports = function (grunt) {
                require('load-grunt-tasks')(grunt, {
        Severity: Minor
        Found in Gruntfile.js - About 3 hrs to fix

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

                          function buttonLabelProvider() {
                              var label = '';
                              var i, item;
                              if (scope.ngModel) {
                                  if (scope.valueAttribute) {
          Severity: Minor
          Found in src/js/selectpicker.js - About 1 hr to fix

            Avoid deeply nested control flow statements.
            Open

                                                if (label) {
                                                    label = label + ', ';
                                                }
            Severity: Major
            Found in src/js/selectpicker.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                                  if (label) {
                                                      label = label + ', ';
                                                  }
              Severity: Major
              Found in src/js/selectpicker.js - About 45 mins to fix

                Avoid too many return statements within this function.
                Open

                                    return null;
                Severity: Major
                Found in src/js/selectpicker.js - About 30 mins to fix
                  Severity
                  Category
                  Status
                  Source
                  Language