camdub/Internships

View on GitHub

Showing 197 of 584 total issues

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

/* http://keith-wood.name/svg.html
   SVG graphing extension for jQuery v1.4.3.
   Written by Keith Wood (kbwood{at}iinet.com.au) August 2007.
   Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and
   MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses.
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 2 days to fix

    File editor_template_src.js has 999 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * editor_template_src.js
     *
     * Copyright 2009, Moxiecode Systems AB
     * Released under LGPL License.
    Severity: Major
    Found in public/javascripts/tinyeditor/themes/advanced/editor_template_src.js - About 2 days to fix

      Function uniform has 457 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        $.fn.uniform = function(options) {
      
          options = $.extend($.uniform.options, options);
      
          var el = this;
      Severity: Major
      Found in public/javascripts/jquery.uniform.js - About 2 days to fix

        File chosen.proto.js has 895 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        // Chosen, a Select Box Enhancer for jQuery and Protoype
        // by Patrick Filler for Harvest, http://getharvest.com
        // 
        // Version 0.9.5
        // Full source at https://github.com/harvesthq/chosen
        Severity: Major
        Found in public/javascripts/chosen/chosen.proto.js - About 2 days to fix

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

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

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

            // Chosen, a Select Box Enhancer for jQuery and Protoype
            // by Patrick Filler for Harvest, http://getharvest.com
            // 
            // Version 0.9.5
            // Full source at https://github.com/harvesthq/chosen
            Severity: Major
            Found in public/javascripts/chosen/chosen.jquery.js - About 2 days to fix

              File jquery.fancybox-1.3.4.js has 844 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*
               * FancyBox - jQuery Plugin
               * Simple and fancy lightbox alternative
               *
               * Examples and documentation at: http://fancybox.net
              Severity: Major
              Found in public/javascripts/fancybox/jquery.fancybox-1.3.4.js - About 2 days to fix

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

                /* http://keith-wood.name/svg.html
                   SVG for jQuery v1.4.3.
                   Written by Keith Wood (kbwood{at}iinet.com.au) August 2007.
                   Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and 
                   MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. 
                Severity: Major
                Found in public/javascripts/jquery.svg/jquery.svg.js - About 1 day to fix

                  Function editor has a Cognitive Complexity of 97 (exceeds 5 allowed). Consider refactoring.
                  Open

                  TINY.editor=function(){
                      var c=[], offset=-30;
                      c['cut']=[1,'Cut','a','cut',1];
                      c['copy']=[2,'Copy','a','copy',1];
                      c['paste']=[3,'Paste','a','paste',1];
                  Severity: Minor
                  Found in public/javascripts/tinyeditor/tinyeditor.js - About 1 day to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Method index has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring.
                  Open

                    def index
                      @internships = Internship.all
                  
                      # Very inefficient when users table has thousands of rows.
                      respond_to do |format|
                  Severity: Minor
                  Found in app/controllers/internships_controller.rb - About 1 day to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

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

                  /* http://keith-wood.name/svg.html
                     SVG plotting extension for jQuery v1.4.3.
                     Written by Keith Wood (kbwood{at}iinet.com.au) December 2008.
                     Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and
                     MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses.
                  Severity: Major
                  Found in public/javascripts/jquery.svg/jquery.svgplot.js - About 1 day to fix

                    File map_script.js has 528 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    //defines map and oTable as global variables that will be used in various places
                    var map, oTable;
                    //initiates an empty object to store the data for internships
                    var internship_data = {'countries':{},'regions':{}};
                    //initiates the internship_locations object which stores the x,y coordinates for the map for both countries and regions
                    Severity: Major
                    Found in public/javascripts/map_script.js - About 1 day to fix

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

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

                        Function editor has 199 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        TINY.editor=function(){
                            var c=[], offset=-30;
                            c['cut']=[1,'Cut','a','cut',1];
                            c['copy']=[2,'Copy','a','copy',1];
                            c['paste']=[3,'Paste','a','paste',1];
                        Severity: Major
                        Found in public/javascripts/tinyeditor/tinyeditor.js - About 7 hrs to fix

                          File adminica_ui.js has 490 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*
                           * Adminica UI
                           *
                           * Copyright (c) 2010 Tricycle Interactive
                           *
                          Severity: Minor
                          Found in public/javascripts/adminica_ui.js - About 7 hrs to fix

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

                            /*
                            
                            Uniform v1.7.5
                            Copyright © 2009 Josh Pyles / Pixelmatrix Design LLC
                            http://pixelmatrixdesign.com
                            Severity: Minor
                            Found in public/javascripts/jquery.uniform.js - About 7 hrs to fix

                              Function _nodeChanged has 187 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      _nodeChanged : function(ed, cm, n, co, ob) {
                                          var t = this, p, de = 0, v, c, s = t.settings, cl, fz, fn, fc, bc, formatNames, matches;
                              
                                          tinymce.each(t.stateControls, function(c) {
                                              cm.setActive(c, ed.queryCommandState(t.controls[c][1]));
                              Severity: Major
                              Found in public/javascripts/tinyeditor/themes/advanced/editor_template_src.js - About 7 hrs to fix

                                Function _start has 160 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        _start = function() {
                                            var obj = selectedArray[ selectedIndex ],
                                                href, 
                                                type, 
                                                title,
                                Severity: Major
                                Found in public/javascripts/fancybox/jquery.fancybox-1.3.4.js - About 6 hrs to fix

                                  File ejs.js has 406 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  (function(){
                                      
                                  
                                  var rsplit = function(string, regex) {
                                      var result = regex.exec(string),retArr = new Array(), first_idx, last_idx, first_bit;
                                  Severity: Minor
                                  Found in public/javascripts/ejs.js - About 5 hrs to fix

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

                                    /* http://keith-wood.name/svg.html
                                       SVG attribute animations for jQuery v1.4.3.
                                       Written by Keith Wood (kbwood{at}iinet.com.au) June 2008.
                                       Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and 
                                       MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. 
                                    Severity: Minor
                                    Found in public/javascripts/jquery.svg/jquery.svganim.js - About 4 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language