partkeepr/PartKeepr

View on GitHub
src/PartKeepr/FrontendBundle/Resources/public/js/Util/Blob.js

Summary

Maintainability
C
7 hrs
Test Coverage

Function BlobBuilder has 146 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var BlobBuilder = view.BlobBuilder || view.WebKitBlobBuilder || view.MozBlobBuilder || (function(view) {
        var
              get_class = function(object) {
                return Object.prototype.toString.call(object).match(/^\[object\s(.*)\]$/)[1];
            }
Severity: Major
Found in src/PartKeepr/FrontendBundle/Resources/public/js/Util/Blob.js - About 5 hrs to fix

    Function append has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            FBB_proto.append = function(data/*, endings*/) {
                var bb = this.data;
                // decode data to a binary string
                if (Uint8Array && (data instanceof ArrayBuffer || data instanceof Uint8Array)) {
                    var
    Severity: Minor
    Found in src/PartKeepr/FrontendBundle/Resources/public/js/Util/Blob.js - About 1 hr to fix

      Avoid too many return statements within this function.
      Open

                      return real_create_object_URL.call(real_URL, blob);
      Severity: Major
      Found in src/PartKeepr/FrontendBundle/Resources/public/js/Util/Blob.js - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status