src/log_analyzer/js/zip-fs.js
File zip-fs.js
has 458 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
Copyright (c) 2013 Gildas Lormeau. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Function addFileEntry
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addFileEntry(zipEntry, fileEntry, onend, onerror) {
function getChildren(fileEntry, callback) {
if (fileEntry.isDirectory)
fileEntry.createReader().readEntries(callback);
if (fileEntry.isFile)
Function getFileEntry
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getFileEntry(fileEntry, entry, onend, onprogress, onerror, totalSize, checkCrc32) {
var currentIndex = 0;
function process(fileEntry, entry, onend, onprogress, onerror, totalSize) {
var childIndex = 0;
Function process
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function process(fileEntry, entry, onend, onprogress, onerror, totalSize) {
var childIndex = 0;
function addChild(child) {
function nextChild(childFileEntry) {
Function process
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function process(zipEntry, fileEntry, onend) {
getChildren(fileEntry, function(children) {
var childIndex = 0;
function addChild(child) {
Function getFileEntry
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getFileEntry(fileEntry, entry, onend, onprogress, onerror, totalSize, checkCrc32) {
Function process
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function process(fileEntry, entry, onend, onprogress, onerror, totalSize) {
Function exportZip
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function exportZip(zipWriter, entry, onend, onprogress, totalSize) {
Function getFileEntry
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
getFileEntry : function(fileEntry, onend, onprogress, onerror, checkCrc32) {
Function bufferedCopy
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function bufferedCopy(reader, writer, onend, onprogress, onerror) {
Function process
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function process(zipWriter, entry, onend, onprogress, totalSize) {