Showing 6 of 11 total issues
File ImgApp.js
has 427 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Generated by CoffeeScript 1.12.7
/**
* Title ImgApp<br>
* Author Tanaike<br>
Function DoResize
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
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";
Function UpdateThumbnail
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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.");
}
Function createNewSlidesWithPageSize
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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.");
}
Function GetSize
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ImgApp.prototype.GetSize = function(blob) {
var res;
this.bytear = (function(blob) {
var e;
try {
Function SlidesAppp
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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.