CodeforLeipzig/stadtratmonitor

View on GitHub

Showing 611 of 611 total issues

Consider simplifying this complex logical expression.
Open

      if (placement === top || (placement === left || placement === right) && variation === end) {
        sideY = bottom;
        var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : (
          // $FlowFixMe[prop-missing]
          offsetParent[heightProp]

    Consider simplifying this complex logical expression.
    Open

    handleKey:function handleKey(t,i,n){var s,a,o,l=r[i],c=this.parseKey(t);if(!l)return console.warn("Component not defined!");if(true!==t.zfIsKeyHandled){s="undefined"===typeof l.ltr?l:rtl()?e.extend({},l.ltr,l.rtl):e.extend({},l.rtl,l.ltr);a=s[c];o=n[a];if(o&&"function"===typeof o){var h=o.apply();t.zfIsKeyHandled=true;(n.handled||"function"===typeof n.handled)&&n.handled(h)}else(n.unhandled||"function"===typeof n.unhandled)&&n.unhandled()}},

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

                }}, name: {get: function() {
                  var t3;
                  return (t3 = this.inputElement) != null ? t3.name : void 0;
                }}, value: {get: function() {
      public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 5225..5228

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

            if (!isBodyOverflowing && isModalOverflowing) {
              const property = isRTL() ? "paddingRight" : "paddingLeft";
              this._element.style[property] = `${scrollbarWidth}px`;
            }
      public/assets/application-83027ab76a0c0e3ffb5bae510e4627be2c66fe2cccf3e0d566ea67ed819ad3e1.js on lines 3781..3784

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

            if (isBodyOverflowing && !isModalOverflowing) {
              const property = isRTL() ? "paddingLeft" : "paddingRight";
              this._element.style[property] = `${scrollbarWidth}px`;
            }
      public/assets/application-83027ab76a0c0e3ffb5bae510e4627be2c66fe2cccf3e0d566ea67ed819ad3e1.js on lines 3785..3788

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

                }}, editor: {get: function() {
                  var t3;
                  return (t3 = this.editorController) != null ? t3.editor : void 0;
                }}, name: {get: function() {
      public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 5228..5231

      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 ) {

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

            remove: function( elem, types, handler, selector, mappedTypes ) {

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

          function Tween( elem, options, prop, end, easing ) {

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

            function buildFragment( elems, context, scripts, selection, ignored ) {

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

                  add: function( elem, types, handler, data, selector ) {

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

                function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {

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

                          superMatcher = function( seed, context, xml, results, outermost ) {

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

                    function condense( unmatched, map, filter, context, xml ) {

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

                       */function ImNotTouchingYou(e,t,i,n,s){return 0===OverlapArea(e,t,i,n,s)}function OverlapArea(e,t,i,n,s){var a,o,r,l,c=GetDimensions(e);if(t){var h=GetDimensions(t);o=h.height+h.offset.top-(c.offset.top+c.height);a=c.offset.top-h.offset.top;r=c.offset.left-h.offset.left;l=h.width+h.offset.left-(c.offset.left+c.width)}else{o=c.windowDims.height+c.windowDims.offset.top-(c.offset.top+c.height);a=c.offset.top-c.windowDims.offset.top;r=c.offset.left-c.windowDims.offset.left;l=c.windowDims.width-(c.offset.left+c.width)}o=s?0:Math.min(o,0);a=Math.min(a,0);r=Math.min(r,0);l=Math.min(l,0);return i?r+l:n?a+o:Math.sqrt(a*a+o*o+r*r+l*l)}

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

                          function removeHandler(element, events, typeEvent, handler, delegationSelector) {

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

                           */function ImNotTouchingYou(e,t,i,n,s){return 0===OverlapArea(e,t,i,n,s)}function OverlapArea(e,t,i,n,s){var a,o,r,l,c=GetDimensions(e);if(t){var h=GetDimensions(t);o=h.height+h.offset.top-(c.offset.top+c.height);a=c.offset.top-h.offset.top;r=c.offset.left-h.offset.left;l=h.width+h.offset.left-(c.offset.left+c.width)}else{o=c.windowDims.height+c.windowDims.offset.top-(c.offset.top+c.height);a=c.offset.top-c.windowDims.offset.top;r=c.offset.left-c.windowDims.offset.left;l=c.windowDims.width-(c.offset.left+c.width)}o=s?0:Math.min(o,0);a=Math.min(a,0);r=Math.min(r,0);l=Math.min(l,0);return i?r+l:n?a+o:Math.sqrt(a*a+o*o+r*r+l*l)}

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

                              async function topLevelLoad (url, fetchOpts, source, nativelyLoaded, lastStaticLoadPromise) {

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

                                function addHandler(element, originalTypeEvent, handler, delegationFunction, oneOff) {

                                Method filter_select has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                  def filter_select(builder, name, desc, facets, selected)
                                Severity: Minor
                                Found in app/helpers/search_helper.rb - About 35 mins to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language