crmis/weddings

View on GitHub

Showing 334 of 334 total issues

Function getBaseline has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            getBaseline: function (origin, original) {
                var y, x;
                switch (origin[0]) {
                    case "top":
                        y = 0;
Severity: Minor
Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

    Function _drop has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            _drop: function (event, custom) {
    
                var draggable = custom || $.ui.ddmanager.current,
                    childrenIntersection = false;
    
    
    Severity: Minor
    Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

      Function option has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              option: function (key, value) {
                  var options = key,
                      parts,
                      curOption,
                      i;
      Severity: Minor
      Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

        Function to has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                spaces.hsla.to = function (rgba) {
                    if (rgba[0] == null || rgba[1] == null || rgba[2] == null) {
                        return [null, null, null, rgba[3]];
                    }
                    var r = rgba[0] / 255,
        Severity: Minor
        Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

                          drag: function (ev, ui) {
          
                              // NOTE: this `cell` value is only useful for determining in-bounds and all-day.
                              // Bad for anything else due to the discrepancy between the mouse position and the
                              // element position while snapping. (problem revealed in PR #55)
          Severity: Minor
          Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

            Function AgendaWeekView has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Function BasicWeekView has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Function refreshPositions has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        refreshPositions: function (fast) {
                
                            //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
                            if (this.offsetParent && this.helper) {
                                this.offset.parent = this._getParentOffset();
                Severity: Minor
                Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

                                  isOverElementWidth = (this.options.axis === "y") || isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width),
                  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 4621..4621

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

                  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

                              var isOverElementHeight = (this.options.axis === "x") || isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height),
                  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 4622..4622

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

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

                              transition: function (other, distance) {
                                  var end = color(other),
                                      spaceName = end._space(),
                                      space = spaces[spaceName],
                                      startColor = this.alpha() === 0 ? color("transparent") : this,
                  Severity: Minor
                  Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                    Function complete has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                complete: function () {
                                    if (el.to.opacity === 0) {
                                        el.css("opacity", el.from.opacity);
                                    }
                                    if (mode === "hide") {
                    Severity: Minor
                    Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                      Function slotSelectionMousedown has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              function slotSelectionMousedown(ev) {
                                  if (ev.which == 1 && opt('selectable')) { // ev.which==1 means left mouse button
                                      unselect(ev);
                                      var dates;
                                      hoverListener.start(function (cell, origCell) {
                      Severity: Minor
                      Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

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

                                _getDragHorizontalDirection: function () {
                                    var delta = this.positionAbs.left - this.lastPositionAbs.left;
                                    return delta !== 0 && (delta > 0 ? "right" : "left");
                                },
                        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 4652..4655

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

                        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

                                            if (ls) {
                                                ui.position.left = inst._convertPositionTo("relative", {
                                                    top: 0,
                                                    left: l
                                                }).left - inst.margins.left;
                        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 2356..2361

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

                        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

                                            if (ts) {
                                                ui.position.top = inst._convertPositionTo("relative", {top: t, left: 0}).top - inst.margins.top;
                                            }
                        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 2347..2349

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

                        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

                                _getDragVerticalDirection: function () {
                                    var delta = this.positionAbs.top - this.lastPositionAbs.top;
                                    return delta !== 0 && (delta > 0 ? "down" : "up");
                                },
                        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 4657..4660

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

                        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

                                            if (bs) {
                                                ui.position.top = inst._convertPositionTo("relative", {top: b, left: 0}).top - inst.margins.top;
                                            }
                        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 2371..2373

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

                        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

                                            if (rs) {
                                                ui.position.left = inst._convertPositionTo("relative", {
                                                    top: 0,
                                                    left: r
                                                }).left - inst.margins.left;
                        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 2380..2385

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

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

                            $.effects.effect.transfer = function (o, done) {
                                var elem = $(this),
                                    target = $(o.to),
                                    targetFixed = target.css("position") === "fixed",
                                    body = $("body"),
                        Severity: Minor
                        Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language