nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

File tab.js has 716 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * # Semantic UI 1.12.3 - Tab
 * http://github.com/semantic-org/semantic-ui/
 *
 *
Severity: Major
Found in static/components/tab.js - About 1 day to fix

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

        max : kwargs((function () {
            function withAxis(data, source, offsetStride, axisSize, stride) {
                var cursor = 0;
                for (var offset = 0; offset < this._size; offset+=offsetStride) {
                    for (var i = 0; i < stride; i++) {
    Severity: Major
    Found in static/js/dncp/util/ndarray.js and 1 other location - About 1 day to fix
    static/js/dncp/util/ndarray.js on lines 695..728

    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 285.

    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 2 locations. Consider refactoring.
    Open

        min : kwargs((function () {
            function withAxis(data, source, offsetStride, axisSize, stride) {
                var cursor = 0;
                for (var offset = 0; offset < this._size; offset+=offsetStride) {
                    for (var i = 0; i < stride; i++) {
    Severity: Major
    Found in static/js/dncp/util/ndarray.js and 1 other location - About 1 day to fix
    static/js/dncp/util/ndarray.js on lines 653..686

    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 285.

    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 2 locations. Consider refactoring.
    Open

        cumprod : kwargs((function () {
            function withAxis(data, source, offsetStride, axisSize, stride) {
                for (var offset = 0; offset < this._size; offset+=offsetStride) {
                    for (var i = 0; i < stride; i++) {
                        var idx = offset + i;
    Severity: Major
    Found in static/js/dncp/util/ndarray.js and 1 other location - About 1 day to fix
    static/js/dncp/util/ndarray.js on lines 1208..1236

    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 280.

    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 2 locations. Consider refactoring.
    Open

        cumsum : kwargs((function () {
            function withAxis(data, source, offsetStride, axisSize, stride) {
                for (var offset = 0; offset < this._size; offset+=offsetStride) {
                    for (var i = 0; i < stride; i++) {
                        var idx = offset + i;
    Severity: Major
    Found in static/js/dncp/util/ndarray.js and 1 other location - About 1 day to fix
    static/js/dncp/util/ndarray.js on lines 1244..1272

    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 280.

    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 0008_auto_20141130_2305.py has 626 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # -*- coding: utf-8 -*-
    from __future__ import unicode_literals
    
    from django.db import models, migrations
    
    
    Severity: Major
    Found in openfonacide/migrations/0008_auto_20141130_2305.py - About 1 day to fix

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

                  if(isRoScalar) {
                      for (var c = 0; c < offsetRepeats; c++) {
                          for (var i = 0; i < offsetStride; i++) {
                              _a = loData[idx]; _b = roData;
                              switch (op) {
      Severity: Major
      Found in static/js/dncp/util/ndarray.js and 1 other location - About 1 day to fix
      static/js/dncp/util/ndarray.js on lines 1517..1557

      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 249.

      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

                  if (isLoScalar) {
                      for (var c = 0; c < offsetRepeats; c++) {
                          for (var i = 0; i < offsetStride; i++) {
                              _a = loData; _b = roData[idx];
                              switch (op) {
      Severity: Major
      Found in static/js/dncp/util/ndarray.js and 1 other location - About 1 day to fix
      static/js/dncp/util/ndarray.js on lines 1475..1515

      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 249.

      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 jquery.address.js has 609 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*! jQuery Address v${version} | (c) 2009, 2013 Rostislav Hristov | jquery.org/license */
      (function ($) {
      
          $.address = (function () {
      
      
      Severity: Major
      Found in static/js/jquery.address.js - About 1 day to fix

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

            prod : kwargs((function () {
                function withAxis(data, source, offsetStride, axisSize, stride) {
                    var cursor = 0;
                    for (var offset = 0; offset < this._size; offset+=offsetStride) {
                        for (var i = 0; i < stride; i++) {
        Severity: Major
        Found in static/js/dncp/util/ndarray.js and 1 other location - About 1 day to fix
        static/js/dncp/util/ndarray.js on lines 826..854

        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 244.

        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 2 locations. Consider refactoring.
        Open

            sum : kwargs((function () {
                function withAxis(data, source, offsetStride, axisSize, stride) {
                    var cursor = 0;
                    for (var offset = 0; offset < this._size; offset+=offsetStride) {
                        for (var i = 0; i < stride; i++) {
        Severity: Major
        Found in static/js/dncp/util/ndarray.js and 1 other location - About 1 day to fix
        static/js/dncp/util/ndarray.js on lines 862..890

        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 244.

        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 dimmer.js has 598 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*!
         * # Semantic UI 1.12.3 - Dimmer
         * http://github.com/semantic-org/semantic-ui/
         *
         *
        Severity: Major
        Found in static/components/dimmer.js - About 1 day to fix

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

                      controller.dtOptions = DTOptionsBuilder.newOptions()
                          .withOption('bProcessing', 'true')
                          .withOption('drawCallback', function () {
                              var save_button = $('<button>Guardar</button>')
                                  .addClass('ui teal tiny button right floated save-button')
          Severity: Major
          Found in static/js/frontend.MatchController.js and 1 other location - About 1 day to fix
          static/js/frontend.UnMatchController.js on lines 63..83

          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 241.

          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 2 locations. Consider refactoring.
          Open

                      controller.dtOptions = DTOptionsBuilder.newOptions()
                          .withOption('bProcessing', 'true')
                          .withOption('drawCallback', function () {
                              var save_button = $('<button>Eliminar Relación</button>')
                                  .addClass('ui teal tiny button right floated save-button')
          Severity: Major
          Found in static/js/frontend.UnMatchController.js and 1 other location - About 1 day to fix
          static/js/frontend.MatchController.js on lines 62..82

          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 241.

          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 state.js has 595 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*!
           * # Semantic UI 1.12.3 - State
           * http://github.com/semantic-org/semantic-ui/
           *
           *
          Severity: Major
          Found in static/components/state.js - About 1 day to fix

            File views.py has 590 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            # -*- coding: utf-8 -*-
            
            import json
            import openfonacide.settings as settings
            from django.contrib.auth.decorators import login_required
            Severity: Major
            Found in openfonacide/views.py - About 1 day to fix

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

                  if tipo == 'aulas' or 'aulas' in tipo:
                      if union:
                          begin_query += 'UNION '
                      begin_query += ('SELECT p_au.codigo_establecimiento '
                              'FROM openfonacide_espacio p_au '
              Severity: Major
              Found in openfonacide/filtros.py and 2 other locations - About 1 day to fix
              openfonacide/filtros.py on lines 165..179
              openfonacide/filtros.py on lines 196..211

              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 130.

              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 tipo == 'otros' or 'otros' in tipo:
                      if union:
                          begin_query += 'UNION '
                      begin_query += ('SELECT p_es.codigo_establecimiento '
                              'FROM openfonacide_espacio p_es '
              Severity: Major
              Found in openfonacide/filtros.py and 2 other locations - About 1 day to fix
              openfonacide/filtros.py on lines 165..179
              openfonacide/filtros.py on lines 180..195

              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 130.

              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 tipo == 'sanitarios' or 'sanitarios' in tipo:
                      if union:
                          begin_query += 'UNION '
                      begin_query += ('SELECT p_san.codigo_establecimiento '
                              'FROM openfonacide_sanitario p_san '
              Severity: Major
              Found in openfonacide/filtros.py and 2 other locations - About 1 day to fix
              openfonacide/filtros.py on lines 180..195
              openfonacide/filtros.py on lines 196..211

              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 130.

              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 accordion.js has 526 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*!
               * # Semantic UI 1.12.3 - Accordion
               * http://github.com/semantic-org/semantic-ui/
               *
               *
              Severity: Major
              Found in static/components/accordion.js - About 1 day to fix
                Severity
                Category
                Status
                Source
                Language