tanaikech/ImgApp

View on GitHub

Showing 6 of 11 total issues

File ImgApp.js has 427 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Generated by CoffeeScript 1.12.7

/**
 * Title  ImgApp<br>
 * Author  Tanaike<br>
Severity: Minor
Found in ImgApp.js - About 6 hrs to fix

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

        ImgApp.prototype.DoResize = function(fileId, width) {
          var blob, e, headers, method, mimetype, n, res, resized, rs, thumbUrl, turl, url;
          try {
            url = "https://www.googleapis.com/drive/v3/files/" + fileId + "?supportsAllDrives=true&fields=thumbnailLink%2CmimeType";
            method = "get";
    Severity: Minor
    Found in ImgApp.js - About 1 hr to fix

      Function UpdateThumbnail has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          ImgApp.prototype.UpdateThumbnail = function(imgFileId_, srcFileId_) {
            var boundary, data, fields, headers, img4thumb, metadata, method, mime, payload, url;
            if (imgFileId_ == null) {
              throw new Error("No image file ID.");
            }
      Severity: Minor
      Found in ImgApp.js - About 1 hr to fix

        Function createNewSlidesWithPageSize has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            SlidesAppp.prototype.createNewSlidesWithPageSize = function (obj_) {
              var blob, createObj, e, pptxObj, tmpId;
              if (!obj_ || Object.keys(obj_).length === 0) {
                putError.call(this, "Object was not found. Please confirm it again.");
              }
        Severity: Minor
        Found in SlidesAppp.js - About 1 hr to fix

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

              ImgApp.prototype.GetSize = function(blob) {
                var res;
                this.bytear = (function(blob) {
                  var e;
                  try {
          Severity: Minor
          Found in ImgApp.js - About 1 hr to fix

            Function SlidesAppp has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function SlidesAppp(id_) {
            
                  /**
                   * ### Description
                   * Check whether Drive API is enabled at Advanced Google services, and return it as true or false and the version.
            Severity: Minor
            Found in SlidesAppp.js - About 1 hr to fix
              Severity
              Category
              Status
              Source
              Language