FanaHOVA/blazer

View on GitHub

Showing 841 of 841 total issues

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

            if (typeof options.locale.daysOfWeek === 'object')
                this.locale.daysOfWeek = options.locale.daysOfWeek.slice();
Severity: Minor
Found in app/assets/javascripts/blazer/daterangepicker.js and 1 other location - About 40 mins to fix
app/assets/javascripts/blazer/daterangepicker.js on lines 149..150

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

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

  $.fn.tab.noConflict = function () {
    $.fn.tab = old
    return this
  }
Severity: Major
Found in app/assets/javascripts/blazer/bootstrap.js and 8 other locations - About 40 mins to fix
app/assets/javascripts/blazer/bootstrap.js on lines 104..107
app/assets/javascripts/blazer/bootstrap.js on lines 216..219
app/assets/javascripts/blazer/bootstrap.js on lines 436..439
app/assets/javascripts/blazer/bootstrap.js on lines 624..627
app/assets/javascripts/blazer/bootstrap.js on lines 952..955
app/assets/javascripts/blazer/bootstrap.js on lines 1898..1901
app/assets/javascripts/blazer/bootstrap.js on lines 2112..2115
app/assets/javascripts/blazer/bootstrap.js on lines 2290..2293

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

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

  $.fn.affix.noConflict = function () {
    $.fn.affix = old
    return this
  }
Severity: Major
Found in app/assets/javascripts/blazer/bootstrap.js and 8 other locations - About 40 mins to fix
app/assets/javascripts/blazer/bootstrap.js on lines 104..107
app/assets/javascripts/blazer/bootstrap.js on lines 216..219
app/assets/javascripts/blazer/bootstrap.js on lines 436..439
app/assets/javascripts/blazer/bootstrap.js on lines 624..627
app/assets/javascripts/blazer/bootstrap.js on lines 952..955
app/assets/javascripts/blazer/bootstrap.js on lines 1740..1743
app/assets/javascripts/blazer/bootstrap.js on lines 2112..2115
app/assets/javascripts/blazer/bootstrap.js on lines 2290..2293

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

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

  $.fn.scrollspy.noConflict = function () {
    $.fn.scrollspy = old
    return this
  }
Severity: Major
Found in app/assets/javascripts/blazer/bootstrap.js and 8 other locations - About 40 mins to fix
app/assets/javascripts/blazer/bootstrap.js on lines 104..107
app/assets/javascripts/blazer/bootstrap.js on lines 216..219
app/assets/javascripts/blazer/bootstrap.js on lines 436..439
app/assets/javascripts/blazer/bootstrap.js on lines 624..627
app/assets/javascripts/blazer/bootstrap.js on lines 952..955
app/assets/javascripts/blazer/bootstrap.js on lines 1740..1743
app/assets/javascripts/blazer/bootstrap.js on lines 1898..1901
app/assets/javascripts/blazer/bootstrap.js on lines 2112..2115

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

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

  $.fn.button.noConflict = function () {
    $.fn.button = old
    return this
  }
Severity: Major
Found in app/assets/javascripts/blazer/bootstrap.js and 8 other locations - About 40 mins to fix
app/assets/javascripts/blazer/bootstrap.js on lines 104..107
app/assets/javascripts/blazer/bootstrap.js on lines 436..439
app/assets/javascripts/blazer/bootstrap.js on lines 624..627
app/assets/javascripts/blazer/bootstrap.js on lines 952..955
app/assets/javascripts/blazer/bootstrap.js on lines 1740..1743
app/assets/javascripts/blazer/bootstrap.js on lines 1898..1901
app/assets/javascripts/blazer/bootstrap.js on lines 2112..2115
app/assets/javascripts/blazer/bootstrap.js on lines 2290..2293

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

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

  $.fn.dropdown.noConflict = function () {
    $.fn.dropdown = old
    return this
  }
Severity: Major
Found in app/assets/javascripts/blazer/bootstrap.js and 8 other locations - About 40 mins to fix
app/assets/javascripts/blazer/bootstrap.js on lines 104..107
app/assets/javascripts/blazer/bootstrap.js on lines 216..219
app/assets/javascripts/blazer/bootstrap.js on lines 436..439
app/assets/javascripts/blazer/bootstrap.js on lines 952..955
app/assets/javascripts/blazer/bootstrap.js on lines 1740..1743
app/assets/javascripts/blazer/bootstrap.js on lines 1898..1901
app/assets/javascripts/blazer/bootstrap.js on lines 2112..2115
app/assets/javascripts/blazer/bootstrap.js on lines 2290..2293

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

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 CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    "CHILD": function( type, what, argument, first, last ) {
Severity: Minor
Found in app/assets/javascripts/blazer/jquery.js - About 35 mins to fix

    Function augmentWidthOrHeight has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
    Severity: Minor
    Found in app/assets/javascripts/blazer/jquery.js - About 35 mins to fix

      Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          superMatcher = function( seed, context, xml, results, outermost ) {
      Severity: Minor
      Found in app/assets/javascripts/blazer/jquery.js - About 35 mins to fix

        Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          add: function( elem, types, handler, data, selector ) {
        Severity: Minor
        Found in app/assets/javascripts/blazer/jquery.js - About 35 mins to fix

          Function Tween has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function Tween( elem, options, prop, end, easing ) {
          Severity: Minor
          Found in app/assets/javascripts/blazer/jquery.js - About 35 mins to fix

            Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function condense( unmatched, map, filter, context, xml ) {
            Severity: Minor
            Found in app/assets/javascripts/blazer/jquery.js - About 35 mins to fix

              Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                remove: function( elem, types, handler, selector, mappedTypes ) {
              Severity: Minor
              Found in app/assets/javascripts/blazer/jquery.js - About 35 mins to fix

                Function on has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                Severity: Minor
                Found in app/assets/javascripts/blazer/jquery.js - About 35 mins to fix

                  Function createFunctionalComponent has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                    Ctor,
                    propsData,
                    data,
                    context,
                    children
                  Severity: Minor
                  Found in app/assets/javascripts/blazer/vue.js - About 35 mins to fix

                    Function createEvent has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        function createEvent(type, chart, x, y, native) {
                    Severity: Minor
                    Found in app/assets/javascripts/blazer/Chart.js - About 35 mins to fix

                      Function updateListeners has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                        on,
                        oldOn,
                        add,
                        remove$$1,
                        vm
                      Severity: Minor
                      Found in app/assets/javascripts/blazer/vue.js - About 35 mins to fix

                        Function assertProp has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                          prop,
                          name,
                          value,
                          vm,
                          absent
                        Severity: Minor
                        Found in app/assets/javascripts/blazer/vue.js - About 35 mins to fix

                          Function determineLimits has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              function determineLimits(angle, pos, size, min, max) {
                          Severity: Minor
                          Found in app/assets/javascripts/blazer/Chart.js - About 35 mins to fix

                            Function checkProp has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              res,
                              hash,
                              key,
                              altKey,
                              preserve
                            Severity: Minor
                            Found in app/assets/javascripts/blazer/vue.js - About 35 mins to fix
                              Severity
                              Category
                              Status
                              Source
                              Language