crmis/weddings

View on GitHub

Showing 334 of 334 total issues

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

        $.fn[name] = function (options) {
            var isMethodCall = typeof options === "string",
                args = slice.call(arguments, 1),
                returnValue = this;

Severity: Minor
Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

            _mouseStart: function (event) {
    
                var curleft, curtop, cursor,
                    o = this.options,
                    iniPos = this.element.position(),
    Severity: Minor
    Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

          function MonthView(element, calendar) {
              var t = this;
      
      
              // exports
      Severity: Minor
      Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

        Function slide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            $.effects.effect.slide = function (o, done) {
        
                // Create element
                var el = $(this),
                    props = ["position", "top", "bottom", "left", "right", "width", "height"],
        Severity: Minor
        Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

          Function drag has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  drag: function (event) {
          
                      var i = $(this).data("ui-draggable"), o = i.options, scrolled = false;
          
                      if (i.scrollParent[0] !== document && i.scrollParent[0].tagName !== "HTML") {
          Severity: Minor
          Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

            Function CoordinateGrid has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function CoordinateGrid(buildFunc) {
            
                    var t = this;
                    var rows;
                    var cols;
            Severity: Minor
            Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

              Function _mouseCapture has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      _mouseCapture: function (event, overrideHandle) {
                          var currentItem = null,
                              validHandle = false,
                              that = this;
              
              
              Severity: Minor
              Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                Function cancel has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        cancel: function () {
                
                            if (this.dragging) {
                
                                this._mouseUp({target: null});
                Severity: Minor
                Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                  Function effect has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                              effect: function (/* effect, options, speed, callback */) {
                                  var args = _normalizeArguments.apply(this, arguments),
                                      mode = args.mode,
                                      queue = args.queue,
                                      effectMethod = $.effects.effect[args.effect];
                  Severity: Minor
                  Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

                                nw: function (event, dx, dy) {
                                    return $.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [event, dx, dy]));
                                }
                    Severity: Major
                    Found in app/assets/javascripts/viewable_calendar-editable.js and 3 other locations - About 1 hr to fix
                    app/assets/javascripts/viewable_calendar-editable.js on lines 3419..3421
                    app/assets/javascripts/viewable_calendar-editable.js on lines 3422..3424
                    app/assets/javascripts/viewable_calendar-editable.js on lines 3425..3427

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

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

                                sw: function (event, dx, dy) {
                                    return $.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [event, dx, dy]));
                                },
                    Severity: Major
                    Found in app/assets/javascripts/viewable_calendar-editable.js and 3 other locations - About 1 hr to fix
                    app/assets/javascripts/viewable_calendar-editable.js on lines 3419..3421
                    app/assets/javascripts/viewable_calendar-editable.js on lines 3425..3427
                    app/assets/javascripts/viewable_calendar-editable.js on lines 3428..3430

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

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

                                se: function (event, dx, dy) {
                                    return $.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [event, dx, dy]));
                                },
                    Severity: Major
                    Found in app/assets/javascripts/viewable_calendar-editable.js and 3 other locations - About 1 hr to fix
                    app/assets/javascripts/viewable_calendar-editable.js on lines 3422..3424
                    app/assets/javascripts/viewable_calendar-editable.js on lines 3425..3427
                    app/assets/javascripts/viewable_calendar-editable.js on lines 3428..3430

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

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

                                ne: function (event, dx, dy) {
                                    return $.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [event, dx, dy]));
                                },
                    Severity: Major
                    Found in app/assets/javascripts/viewable_calendar-editable.js and 3 other locations - About 1 hr to fix
                    app/assets/javascripts/viewable_calendar-editable.js on lines 3419..3421
                    app/assets/javascripts/viewable_calendar-editable.js on lines 3422..3424
                    app/assets/javascripts/viewable_calendar-editable.js on lines 3428..3430

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

                    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 sliceSegs has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            function sliceSegs(events, visEventEnds, start, end) {
                                var segs = [],
                                    i, len = events.length, event,
                                    eventStart, eventEnd,
                                    segStart, segEnd,
                    Severity: Minor
                    Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

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

                                          if (event.pageY - this.offset.click.top < containment[1]) {
                                              pageY = containment[1] + this.offset.click.top;
                                          }
                      Severity: Major
                      Found in app/assets/javascripts/viewable_calendar-editable.js and 3 other locations - About 1 hr to fix
                      app/assets/javascripts/viewable_calendar-editable.js on lines 1966..1968
                      app/assets/javascripts/viewable_calendar-editable.js on lines 1972..1974
                      app/assets/javascripts/viewable_calendar-editable.js on lines 1975..1977

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

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

                                          if (event.pageX - this.offset.click.left < containment[0]) {
                                              pageX = containment[0] + this.offset.click.left;
                                          }
                      Severity: Major
                      Found in app/assets/javascripts/viewable_calendar-editable.js and 3 other locations - About 1 hr to fix
                      app/assets/javascripts/viewable_calendar-editable.js on lines 1969..1971
                      app/assets/javascripts/viewable_calendar-editable.js on lines 1972..1974
                      app/assets/javascripts/viewable_calendar-editable.js on lines 1975..1977

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

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

                                          if (event.pageX - this.offset.click.left > containment[2]) {
                                              pageX = containment[2] + this.offset.click.left;
                                          }
                      Severity: Major
                      Found in app/assets/javascripts/viewable_calendar-editable.js and 3 other locations - About 1 hr to fix
                      app/assets/javascripts/viewable_calendar-editable.js on lines 1966..1968
                      app/assets/javascripts/viewable_calendar-editable.js on lines 1969..1971
                      app/assets/javascripts/viewable_calendar-editable.js on lines 1975..1977

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

                      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 (!$.fn.addBack) {
                              $.fn.addBack = function (selector) {
                                  return this.add(selector == null ?
                                          this.prevObject : this.prevObject.filter(selector)
                                  );
                      Severity: Major
                      Found in app/assets/javascripts/viewable_calendar-editable.js and 1 other location - About 1 hr to fix
                      app/assets/javascripts/viewable_calendar-editable.js on lines 6120..6126

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

                      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 (!$.fn.addBack) {
                                  $.fn.addBack = function (selector) {
                                      return this.add(selector == null ?
                                              this.prevObject : this.prevObject.filter(selector)
                                      );
                      Severity: Major
                      Found in app/assets/javascripts/viewable_calendar-editable.js and 1 other location - About 1 hr to fix
                      app/assets/javascripts/viewable_calendar-editable.js on lines 221..227

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

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

                                          if (event.pageY - this.offset.click.top > containment[3]) {
                                              pageY = containment[3] + this.offset.click.top;
                                          }
                      Severity: Major
                      Found in app/assets/javascripts/viewable_calendar-editable.js and 3 other locations - About 1 hr to fix
                      app/assets/javascripts/viewable_calendar-editable.js on lines 1966..1968
                      app/assets/javascripts/viewable_calendar-editable.js on lines 1969..1971
                      app/assets/javascripts/viewable_calendar-editable.js on lines 1972..1974

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

                      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