shadowproject/shadow

View on GitHub
src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js

Summary

Maintainability
D
1 day
Test Coverage

File jdenticon-1.3.2.js has 449 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Jdenticon 1.3.2
 * http://jdenticon.com
 *  
 * Built: 2015-10-10T11:55:57.451Z
Severity: Minor
Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 6 hrs to fix

    Function iconGenerator has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function iconGenerator(renderer, hash, x, y, size, padding, config) {
            var undefined;
            
            // Calculate padding
            padding = (size * (padding === undefined ? 0.08 : padding)) | 0;
    Severity: Minor
    Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 1 hr to fix

      Function update has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function update(el, hash, padding) {
              if (typeof(el) === "string") {
                  if (supportsQuerySelectorAll) {
                      var elements = document.querySelectorAll(el);
                      for (var i = 0; i < elements.length; i++) {
      Severity: Minor
      Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 1 hr to fix

        Function iconGenerator has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            function iconGenerator(renderer, hash, x, y, size, padding, config) {
        Severity: Major
        Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 50 mins to fix

          Function addTriangle has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  addTriangle: function (x, y, w, h, r, invert) {
          Severity: Minor
          Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 45 mins to fix

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

                    addRhombus: function (x, y, w, h, invert) {
            Severity: Minor
            Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 35 mins to fix

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

                      addRectangle: function (x, y, w, h, invert) {
              Severity: Minor
              Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 35 mins to fix

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

                        function renderShape(colorIndex, shapes, index, rotationIndex, positions) {
                Severity: Minor
                Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 35 mins to fix

                  There are no issues that match your filters.

                  Category
                  Status