hunterlong/statup

View on GitHub
frontend/public/js/css.js

Summary

Maintainability
F
1 mo
Test Coverage

File css.js has 763 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
Severity: Major
Found in frontend/public/js/css.js - About 1 day to fix

    Function tokenBase has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function tokenBase(stream, state) {
        var ch = stream.next();
        if (tokenHooks[ch]) {
          var result = tokenHooks[ch](stream, state);
          if (result !== false) return result;
    Severity: Minor
    Found in frontend/public/js/css.js - About 2 hrs to fix

      Consider simplifying this complex logical expression.
      Open

          } else if (((ch == "u" || ch == "U") && stream.match(/rl(-prefix)?\(/i)) ||
                     ((ch == "d" || ch == "D") && stream.match("omain(", true, true)) ||
                     ((ch == "r" || ch == "R") && stream.match("egexp(", true, true))) {
            stream.backUp(1);
            state.tokenize = tokenParenthesized;
      Severity: Critical
      Found in frontend/public/js/css.js - About 1 hr to fix

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

          states.top = function(type, stream, state) {
            if (type == "{") {
              return pushContext(state, stream, "block");
            } else if (type == "}" && state.context.prev) {
              return popContext(state);
        Severity: Minor
        Found in frontend/public/js/css.js - About 1 hr to fix

          Function atBlock has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            states.atBlock = function(type, stream, state) {
              if (type == "(") return pushContext(state, stream, "atBlock_parens");
              if (type == "}" || type == ";") return popAndPass(type, stream, state);
              if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");
          
          
          Severity: Minor
          Found in frontend/public/js/css.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                    } else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
                        ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
                      // Dedent relative to current context.
                      indent = Math.max(0, cx.indent - indentUnit);
                    }
            Severity: Major
            Found in frontend/public/js/css.js - About 40 mins to fix

              Avoid too many return statements within this function.
              Open

                      return ret("number", "unit");
              Severity: Major
              Found in frontend/public/js/css.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return ret("property", "word");
                Severity: Major
                Found in frontend/public/js/css.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return "maybeprop";
                  Severity: Major
                  Found in frontend/public/js/css.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return "parens";
                    Severity: Major
                    Found in frontend/public/js/css.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return ret("qualifier", "qualifier");
                      Severity: Major
                      Found in frontend/public/js/css.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return pushContext(state, stream, "at");
                        Severity: Major
                        Found in frontend/public/js/css.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return "block";
                          Severity: Major
                          Found in frontend/public/js/css.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return ret("keyword", "important");
                            Severity: Major
                            Found in frontend/public/js/css.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return ret(null, "select-op");
                              Severity: Major
                              Found in frontend/public/js/css.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return "pseudo";
                                Severity: Major
                                Found in frontend/public/js/css.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return ret("meta", "meta");
                                  Severity: Major
                                  Found in frontend/public/js/css.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return "restricted_atBlock_before";
                                    Severity: Major
                                    Found in frontend/public/js/css.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return ret("number", "unit");
                                      Severity: Major
                                      Found in frontend/public/js/css.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return ret(null, ch);
                                        Severity: Major
                                        Found in frontend/public/js/css.js - About 30 mins to fix

                                          Avoid too many return statements within this function.
                                          Open

                                                return pushContext(state, stream, "parens");
                                          Severity: Major
                                          Found in frontend/public/js/css.js - About 30 mins to fix

                                            Avoid too many return statements within this function.
                                            Open

                                                return state.context.type;
                                            Severity: Major
                                            Found in frontend/public/js/css.js - About 30 mins to fix

                                              Avoid too many return statements within this function.
                                              Open

                                                    return pushContext(state, stream, "atBlock");
                                              Severity: Major
                                              Found in frontend/public/js/css.js - About 30 mins to fix

                                                Avoid too many return statements within this function.
                                                Open

                                                          return ret("variable-2", "variable-definition");
                                                Severity: Major
                                                Found in frontend/public/js/css.js - About 30 mins to fix

                                                  Avoid too many return statements within this function.
                                                  Open

                                                      return "prop";
                                                  Severity: Major
                                                  Found in frontend/public/js/css.js - About 30 mins to fix

                                                    Avoid too many return statements within this function.
                                                    Open

                                                            return ret("variable-2", "variable");
                                                    Severity: Major
                                                    Found in frontend/public/js/css.js - About 30 mins to fix

                                                      Avoid too many return statements within this function.
                                                      Open

                                                            return ret(null, null);
                                                      Severity: Major
                                                      Found in frontend/public/js/css.js - About 30 mins to fix

                                                        Avoid too many return statements within this function.
                                                        Open

                                                              return "block";
                                                        Severity: Major
                                                        Found in frontend/public/js/css.js - About 30 mins to fix

                                                          Avoid too many return statements within this function.
                                                          Open

                                                                return ret("atom", "hash");
                                                          Severity: Major
                                                          Found in frontend/public/js/css.js - About 30 mins to fix

                                                            Avoid too many return statements within this function.
                                                            Open

                                                                  return pushContext(state, stream, "interpolation");
                                                            Severity: Major
                                                            Found in frontend/public/js/css.js - About 30 mins to fix

                                                              Avoid too many return statements within this function.
                                                              Open

                                                                    return "keyframes";
                                                              Severity: Major
                                                              Found in frontend/public/js/css.js - About 30 mins to fix

                                                                Avoid too many return statements within this function.
                                                                Open

                                                                      return pushContext(state, stream, "interpolation");
                                                                Severity: Major
                                                                Found in frontend/public/js/css.js - About 30 mins to fix

                                                                  Avoid too many return statements within this function.
                                                                  Open

                                                                        return states.top(type, stream, state);
                                                                  Severity: Major
                                                                  Found in frontend/public/js/css.js - About 30 mins to fix

                                                                    Avoid too many return statements within this function.
                                                                    Open

                                                                          return ret("property", "word");
                                                                    Severity: Major
                                                                    Found in frontend/public/js/css.js - About 30 mins to fix

                                                                      Avoid too many return statements within this function.
                                                                      Open

                                                                          return state.context.type;
                                                                      Severity: Major
                                                                      Found in frontend/public/js/css.js - About 30 mins to fix

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

                                                                        CodeMirror.defineMode("css", function(config, parserConfig) {
                                                                          var inline = parserConfig.inline
                                                                          if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css");
                                                                        
                                                                          var indentUnit = config.indentUnit,
                                                                        Severity: Major
                                                                        Found in frontend/public/js/css.js and 1 other location - About 3 wks to fix
                                                                        frontend/src/assets/js/css.js on lines 4..407

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

                                                                        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

                                                                          var valueKeywords_ = [
                                                                            "above", "absolute", "activeborder", "additive", "activecaption", "afar",
                                                                            "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate",
                                                                            "always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
                                                                            "arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page",
                                                                        Severity: Major
                                                                        Found in frontend/public/js/css.js and 1 other location - About 3 days to fix
                                                                        frontend/src/assets/js/css.js on lines 583..678

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

                                                                        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

                                                                          var propertyKeywords_ = [
                                                                            "align-content", "align-items", "align-self", "alignment-adjust",
                                                                            "alignment-baseline", "anchor-point", "animation", "animation-delay",
                                                                            "animation-direction", "animation-duration", "animation-fill-mode",
                                                                            "animation-iteration-count", "animation-name", "animation-play-state",
                                                                        Severity: Major
                                                                        Found in frontend/public/js/css.js and 1 other location - About 2 days to fix
                                                                        frontend/src/assets/js/css.js on lines 444..534

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

                                                                        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

                                                                          CodeMirror.defineMIME("text/x-scss", {
                                                                            mediaTypes: mediaTypes,
                                                                            mediaFeatures: mediaFeatures,
                                                                            mediaValueKeywords: mediaValueKeywords,
                                                                            propertyKeywords: propertyKeywords,
                                                                        Severity: Major
                                                                        Found in frontend/public/js/css.js and 1 other location - About 1 day to fix
                                                                        frontend/src/assets/js/css.js on lines 718..759

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

                                                                        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

                                                                          CodeMirror.defineMIME("text/x-less", {
                                                                            mediaTypes: mediaTypes,
                                                                            mediaFeatures: mediaFeatures,
                                                                            mediaValueKeywords: mediaValueKeywords,
                                                                            propertyKeywords: propertyKeywords,
                                                                        Severity: Major
                                                                        Found in frontend/public/js/css.js and 1 other location - About 1 day to fix
                                                                        frontend/src/assets/js/css.js on lines 761..798

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

                                                                        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

                                                                          var colorKeywords_ = [
                                                                            "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
                                                                            "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
                                                                            "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
                                                                            "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
                                                                        Severity: Major
                                                                        Found in frontend/public/js/css.js and 1 other location - About 6 hrs to fix
                                                                        frontend/src/assets/js/css.js on lines 554..581

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

                                                                        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

                                                                          CodeMirror.defineMIME("text/x-gss", {
                                                                            documentTypes: documentTypes,
                                                                            mediaTypes: mediaTypes,
                                                                            mediaFeatures: mediaFeatures,
                                                                            propertyKeywords: propertyKeywords,
                                                                        Severity: Major
                                                                        Found in frontend/public/js/css.js and 1 other location - About 4 hrs to fix
                                                                        frontend/src/assets/js/css.js on lines 800..820

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

                                                                        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

                                                                          CodeMirror.defineMIME("text/css", {
                                                                            documentTypes: documentTypes,
                                                                            mediaTypes: mediaTypes,
                                                                            mediaFeatures: mediaFeatures,
                                                                            mediaValueKeywords: mediaValueKeywords,
                                                                        Severity: Major
                                                                        Found in frontend/public/js/css.js and 1 other location - About 4 hrs to fix
                                                                        frontend/src/assets/js/css.js on lines 697..716

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

                                                                        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

                                                                          function tokenCComment(stream, state) {
                                                                            var maybeEnd = false, ch;
                                                                            while ((ch = stream.next()) != null) {
                                                                              if (maybeEnd && ch == "/") {
                                                                                state.tokenize = null;
                                                                        Severity: Major
                                                                        Found in frontend/public/js/css.js and 1 other location - About 2 hrs to fix
                                                                        frontend/src/assets/js/css.js on lines 685..695

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

                                                                        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

                                                                          function keySet(array) {
                                                                            var keys = {};
                                                                            for (var i = 0; i < array.length; ++i) {
                                                                              keys[array[i].toLowerCase()] = true;
                                                                            }
                                                                        Severity: Major
                                                                        Found in frontend/public/js/css.js and 1 other location - About 1 hr to fix
                                                                        frontend/src/assets/js/css.js on lines 409..415

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

                                                                        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

                                                                          var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_)
                                                                            .concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_)
                                                                            .concat(valueKeywords_);
                                                                        Severity: Major
                                                                        Found in frontend/public/js/css.js and 1 other location - About 1 hr to fix
                                                                        frontend/src/assets/js/css.js on lines 680..682

                                                                        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

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

                                                                          var mediaFeatures_ = [
                                                                            "width", "min-width", "max-width", "height", "min-height", "max-height",
                                                                            "device-width", "min-device-width", "max-device-width", "device-height",
                                                                            "min-device-height", "max-device-height", "aspect-ratio",
                                                                            "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
                                                                        Severity: Major
                                                                        Found in frontend/public/js/css.js and 1 other location - About 1 hr to fix
                                                                        frontend/src/assets/js/css.js on lines 426..437

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

                                                                        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

                                                                        There are no issues that match your filters.

                                                                        Category
                                                                        Status