redu/autorregulacao

View on GitHub

Showing 22 of 52 total issues

File bootstrap-redu.js has 1475 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* ===================================================
 * bootstrap-transition.js v2.0.4
 * http://twitter.github.com/bootstrap/javascript.html#transitions
 * ===================================================
 * Copyright 2012 Twitter, Inc.
Severity: Major
Found in lib/assets/javascripts/bootstrap-redu.js - About 3 days to fix

    Function TokenList has 541 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    $.TokenList = function (input, url_or_data, settings) {
        //
        // Initialization
        //
    
    
    Severity: Major
    Found in lib/assets/javascripts/jquery.tokeninput.js - About 2 days to fix

      File jquery.tokeninput.js has 705 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*
       * jQuery Plugin: Tokenizing Autocomplete Text Entry
       * Version 1.6.0
       *
       * Copyright (c) 2009 James Smith (http://loopj.com)
      Severity: Major
      Found in lib/assets/javascripts/jquery.tokeninput.js - About 1 day to fix

        Function placeHolder has 93 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            $.fn.placeHolder = function(config) {
                log('init placeHolder');
                var o = this;
                var l = $(this).length;
                this.options = $.extend({
        Severity: Major
        Found in lib/assets/javascripts/placeholder-polyfill.js - About 3 hrs to fix

          Function autosize has 68 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  $.fn.autosize = function (className) {
                      return this.each(function () {
                          var 
                          ta = this,
                          $ta = $(ta),
          Severity: Major
          Found in lib/assets/javascripts/jquery.autosize.js - About 2 hrs to fix

            File holder.js has 269 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*
            
            Holder - 1.7 - client side image placeholders
            (c) 2012 Ivan Malopinsky / http://imsky.co
            
            
            Severity: Minor
            Found in lib/assets/javascripts/holder.js - About 2 hrs to fix

              Function ajaxBefore has 57 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                , ajaxBefore: function(options) {
                    settings = $.extend(settings, options)
              
                    var $this = $(this)
              
              
              Severity: Major
              Found in lib/assets/javascripts/bootstrap-redu.js - About 2 hrs to fix

                Function run_search has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function run_search(query) {
                        var cache_key = query + computeURL();
                        var cached_results = cache.get(cache_key);
                        if(cached_results) {
                            populate_dropdown(query, cached_results);
                Severity: Minor
                Found in lib/assets/javascripts/jquery.tokeninput.js - About 1 hr to fix

                  Function show has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    , show: function () {
                        var $tip
                          , inside
                          , pos
                          , actualWidth
                  Severity: Minor
                  Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

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

                        function populate_dropdown (query, results) {
                            if(results && results.length) {
                                dropdown.empty();
                                var dropdown_ul = $(document.createElement('ul'))
                                    .addClass(settings.classes.suggestions)
                    Severity: Minor
                    Found in lib/assets/javascripts/jquery.tokeninput.js - About 1 hr to fix

                      Function replaceSubTitle has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          replaceSubTitle: function(event, filterGroup) {
                            var checkedBoxes = filterGroup.find('input[type="checkbox"]:checked')
                              , filter = filterGroup.find('.' + event.data.settings.filterClass)
                              , subTitleText = ''
                      
                      
                      Severity: Minor
                      Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

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

                        app.run = function (o) {
                            var options = extend(settings, o),
                                images_nodes = selector(options.images),
                                elements = selector(options.elements),
                                preempted = true,
                        Severity: Minor
                        Found in lib/assets/javascripts/holder.js - About 1 hr to fix

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

                            , inviteByMail: function(options) {
                                settings = $.extend(settings, options)
                          
                                return this.each(function() {
                                  var control = $(this)
                          Severity: Minor
                          Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

                            Function scrollArrow has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              , scrollArrow: function(options) {
                                  var settings = $.extend({
                                    // Caractere simbolizando uma seta para cima.
                                    arrowUp: '↑'
                                    // Caractere simbolizando uma seta para baixo.
                            Severity: Minor
                            Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

                              Function insert_token has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function insert_token(item) {
                                      var isAlreadyIn = false
                              
                                      listMix.find('.' + settings.classes.listMixItem).each(function() {
                                          var id = $(this).find('.' + settings.classes.id).text()
                              Severity: Minor
                              Found in lib/assets/javascripts/jquery.tokeninput.js - About 1 hr to fix

                                Function init has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    init: function(options) {
                                      var settings = $.extend({
                                          filterEverythingClass: 'filter-everything',
                                          filterActiveClass: 'filter-active',
                                          filterDropdownMenuClass: 'dropdown-menu',
                                Severity: Minor
                                Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

                                  Function styleInputFile has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      styleInputFile: function(options) {
                                        var settings = $.extend({
                                          buttonDefault: 'button-default'
                                        , buttonText: 'Escolher arquivo'
                                        , filePath: 'control-file-text'
                                  Severity: Minor
                                  Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

                                    Function countChars has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        countChars: function(options) {
                                          var settings = $.extend({
                                            characterCounterTemplate: $('<span class="character-counter legend"></span>')
                                          }, options);
                                    
                                    
                                    Severity: Minor
                                    Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

                                      Function render has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function render(mode, el, holder, src) {
                                      
                                          var dimensions = holder.dimensions,
                                              theme = holder.theme,
                                              text = holder.text;
                                      Severity: Minor
                                      Found in lib/assets/javascripts/holder.js - About 1 hr to fix

                                        Function add_token has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function add_token (item) {
                                                var callback = settings.onAdd;
                                        
                                                // See if the token already exists and select it if we don't want duplicates
                                                if(token_count > 0 && settings.preventDuplicates) {
                                        Severity: Minor
                                        Found in lib/assets/javascripts/jquery.tokeninput.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language