darkwallet/darkwallet

View on GitHub
src/vendors/identicon/pnglib.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function PNGlib has 123 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    window.PNGlib = function(width,height,depth) {

        this.width   = width;
        this.height  = height;
        this.depth   = depth;
Severity: Major
Found in src/vendors/identicon/pnglib.js - About 4 hrs to fix

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

            this.getDump = function() {
    
                // compute adler32 of output pixels + row filter bytes
                var BASE = 65521; /* largest prime smaller than 65536 */
                var NMAX = 5552;  /* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */
    Severity: Minor
    Found in src/vendors/identicon/pnglib.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status