concord-consortium/rigse

View on GitHub

Showing 2,136 of 2,138 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

UI.IframeShim = Class.create(UI.Options, {
  
  options: {
    parent: document.body
  },
Severity: Major
Found in rails/public/javascripts/light_box.js and 1 other location - About 3 days to fix
rails/app/assets/javascripts/prototype-ui/prototype-ui.js on lines 1355..1485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 589.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function Chosen has 672 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  this.Chosen = (function(_super) {
    __extends(Chosen, _super);

    function Chosen() {
      _ref = Chosen.__super__.constructor.apply(this, arguments);
Severity: Major
Found in rails/app/assets/javascripts/chosen.proto.js - About 3 days to fix

    Method up has 672 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def self.up
        create_table :portal_nces06_districts do |t|
          t.string  :LEAID,     :limit => 7       # NCES Local Education Agency ID.  The first two positions of this field are also the Federal Information Profesing Standards (FIPS) state code.
          t.string  :FIPST,     :limit => 2       # Federal Information Processing Standards (FIPS) state code.
          t.string  :STID,      :limit => 14      # Stateís own ID for the education agency.
    Severity: Major
    Found in rails/db/migrate/20090701153613_create_nces06_tables.rb - About 3 days to fix

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

      /*!
       Chosen, a Select Box Enhancer for jQuery and Prototype
       by Patrick Filler for Harvest, http://getharvest.com
      
       Version 1.5.1
      Severity: Major
      Found in rails/app/assets/javascripts/chosen.proto.js - About 3 days to fix

        File PortalNces06Schools.ts has 1177 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";
        
        @Index("index_portal_nces06_schools_on_NCESSCH", ["ncessch"], {})
        @Index("index_portal_nces06_schools_on_SCHNAM", ["schnam"], {})
        @Index("index_portal_nces06_schools_on_SEASCH", ["seasch"], {})
        Severity: Major
        Found in admin-panel/graphql-backend/src/entities/unused/PortalNces06Schools.ts - About 3 days to fix

          Consider simplifying this complex logical expression.
          Open

          if( !PIE ) {
              PIE = window.PIE = {
                  CSS_PREFIX: '-pie-',
                  STYLE_PREFIX: 'Pie',
                  CLASS_PREFIX: 'pie_',
          Severity: Critical
          Found in rails/app/assets/javascripts/pie/PIE_uncompressed.js - About 2 days to fix

            Similar blocks of code found in 3 locations. Consider refactoring.
            Open

            (function() {
              UI.Options = {
                methodsAdded: function(klass) {
                  klass.classMethod($w(' setOptions allOptions optionsGetter optionsSetter optionsAccessor '));
                },
            Severity: Major
            Found in rails/app/assets/javascripts/prototype-ui/prototype-ui.js and 2 other locations - About 2 days to fix
            rails/app/assets/javascripts/livepipe/window.js on lines 300..379
            rails/public/javascripts/light_box.js on lines 355..434

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 476.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 3 locations. Consider refactoring.
            Open

            (function() {
              UI.Options = {
                methodsAdded: function(klass) {
                  klass.classMethod($w(' setOptions allOptions optionsGetter optionsSetter optionsAccessor '));
                },
            Severity: Major
            Found in rails/public/javascripts/light_box.js and 2 other locations - About 2 days to fix
            rails/app/assets/javascripts/livepipe/window.js on lines 300..379
            rails/app/assets/javascripts/prototype-ui/prototype-ui.js on lines 355..434

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 476.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 3 locations. Consider refactoring.
            Open

            (function() {
              UI.Options = {
                methodsAdded: function(klass) {
                  klass.classMethod($w(' setOptions allOptions optionsGetter optionsSetter optionsAccessor '));
                },
            Severity: Major
            Found in rails/app/assets/javascripts/livepipe/window.js and 2 other locations - About 2 days to fix
            rails/app/assets/javascripts/prototype-ui/prototype-ui.js on lines 355..434
            rails/public/javascripts/light_box.js on lines 355..434

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 476.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 3 locations. Consider refactoring.
            Open

            Object.extend(Class.Methods, {
              extend: Object.extend.methodize(),
            
              addMethods: Class.Methods.addMethods.wrap(function(proceed, source) {
                // ensure we are not trying to add null or undefined
            Severity: Major
            Found in rails/app/assets/javascripts/livepipe/window.js and 2 other locations - About 2 days to fix
            rails/app/assets/javascripts/prototype-ui/prototype-ui.js on lines 58..122
            rails/public/javascripts/light_box.js on lines 58..122

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 474.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 3 locations. Consider refactoring.
            Open

            Object.extend(Class.Methods, {
              extend: Object.extend.methodize(),
            
              addMethods: Class.Methods.addMethods.wrap(function(proceed, source) {
                // ensure we are not trying to add null or undefined
            Severity: Major
            Found in rails/public/javascripts/light_box.js and 2 other locations - About 2 days to fix
            rails/app/assets/javascripts/livepipe/window.js on lines 54..118
            rails/app/assets/javascripts/prototype-ui/prototype-ui.js on lines 58..122

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 474.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 3 locations. Consider refactoring.
            Open

            Object.extend(Class.Methods, {
              extend: Object.extend.methodize(),
            
              addMethods: Class.Methods.addMethods.wrap(function(proceed, source) {
                // ensure we are not trying to add null or undefined
            Severity: Major
            Found in rails/app/assets/javascripts/prototype-ui/prototype-ui.js and 2 other locations - About 2 days to fix
            rails/app/assets/javascripts/livepipe/window.js on lines 54..118
            rails/public/javascripts/light_box.js on lines 58..122

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 474.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            File effects.js has 1014 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            // script.aculo.us effects.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009
            
            // Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
            // Contributors:
            //  Justin Palmer (http://encytemedia.com/)
            Severity: Major
            Found in rails/app/assets/javascripts/effects.js - About 2 days to fix

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

              if (!Object.isUndefined(window.Effect)) {
                UI.Window.Effects = UI.Window.Effects || {};
                UI.Window.Effects.Morph = Class.create(Effect.Base, {
                  initialize: function(window, bounds) {
                    this.window = window;
              Severity: Major
              Found in rails/app/assets/javascripts/prototype-ui/prototype-ui.js and 2 other locations - About 2 days to fix
              rails/app/assets/javascripts/livepipe/window.js on lines 2277..2301
              rails/public/javascripts/light_box.js on lines 4032..4056

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 440.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

              if (!Object.isUndefined(window.Effect)) {
                UI.Window.Effects = UI.Window.Effects || {};
                UI.Window.Effects.Morph = Class.create(Effect.Base, {
                  initialize: function(window, bounds) {
                    this.window = window;
              Severity: Major
              Found in rails/public/javascripts/light_box.js and 2 other locations - About 2 days to fix
              rails/app/assets/javascripts/livepipe/window.js on lines 2277..2301
              rails/app/assets/javascripts/prototype-ui/prototype-ui.js on lines 4032..4056

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 440.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

              if (!Object.isUndefined(window.Effect)) {
                UI.Window.Effects = UI.Window.Effects || {};
                UI.Window.Effects.Morph = Class.create(Effect.Base, {
                  initialize: function(window, bounds) {
                    this.window = window;
              Severity: Major
              Found in rails/app/assets/javascripts/livepipe/window.js and 2 other locations - About 2 days to fix
              rails/app/assets/javascripts/prototype-ui/prototype-ui.js on lines 4032..4056
              rails/public/javascripts/light_box.js on lines 4032..4056

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 440.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

              Flotr.Color.lookupColors = {
                  aqua:[0,255,255],
                  azure:[240,255,255],
                  beige:[245,245,220],
                  black:[0,0,0],
              Severity: Major
              Found in rails/app/assets/javascripts/flotr/flotr_out.js and 1 other location - About 2 days to fix
              rails/app/assets/javascripts/flotr/flotr.js on lines 3089..3133

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 405.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

              Flotr.Color.lookupColors = {
                  aqua:[0,255,255],
                  azure:[240,255,255],
                  beige:[245,245,220],
                  black:[0,0,0],
              Severity: Major
              Found in rails/app/assets/javascripts/flotr/flotr.js and 1 other location - About 2 days to fix
              rails/app/assets/javascripts/flotr/flotr_out.js on lines 3090..3134

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 405.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

              UI.WindowManager.Stack = Class.create(Enumerable, {
                initialize: function() {
                  this.windows = [ ];
                },
              
              
              Severity: Major
              Found in rails/public/javascripts/light_box.js and 2 other locations - About 2 days to fix
              rails/app/assets/javascripts/livepipe/window.js on lines 2925..2972
              rails/app/assets/javascripts/prototype-ui/prototype-ui.js on lines 4892..4939

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 395.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

              UI.WindowManager.Stack = Class.create(Enumerable, {
                initialize: function() {
                  this.windows = [ ];
                },
              
              
              Severity: Major
              Found in rails/app/assets/javascripts/prototype-ui/prototype-ui.js and 2 other locations - About 2 days to fix
              rails/app/assets/javascripts/livepipe/window.js on lines 2925..2972
              rails/public/javascripts/light_box.js on lines 4892..4939

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 395.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Severity
              Category
              Status
              Source
              Language