Showing 71 of 125 total issues
Function 2
has 1023 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],2:[function(require,module,exports){
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['./lg-utils'], factory);
} else if (typeof exports !== "undefined") {
File lightgallery.js
has 1167 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**!
* lightgallery.js | 1.0.1 | December 22nd 2016
* http://sachinchoolur.github.io/lightgallery.js/
* Copyright (c) 2016 Sachin N;
* @license GPLv3
File barba.js
has 1007 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("Barba", [], factory);
Function 1
has 412 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
1: [function(require, module, exports) {
(function(global, factory) {
if (typeof define === "function" && define.amd) {
define([], factory);
} else if (typeof exports !== "undefined") {
File es6-promise.js
has 528 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
File lg-zoom.js
has 460 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**!
* lg-zoom.js | 1.0.1 | December 22nd 2016
* http://sachinchoolur.github.io/lg-zoom.js
* Copyright (c) 2016 Sachin N;
* @license GPLv3
File fetch.js
has 447 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.WHATWGFetch = {})));
}(this, (function (exports) { 'use strict';
Function 1
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
1: [function(require, module, exports) {
(function(global, factory) {
if (typeof define === "function" && define.amd) {
define([], factory);
} else if (typeof exports !== "undefined") {
Function 1
has 141 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
*/(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Lightgallery = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports'], factory);
} else if (typeof exports !== "undefined") {
Function init
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Zoom.prototype.init = function() {
var _this = this;
var zoomIcons = '<button id="lg-zoom-in" class="mdui-btn mdui-btn-icon mdui-ripple mdui-ripple-white mdui-float-right"><i class="mdui-icon mdui-text-color-white-icon material-icons"></i></button><button id="lg-zoom-out" class="mdui-btn mdui-btn-icon mdui-ripple mdui-ripple-white mdui-float-right"><i class="mdui-icon mdui-text-color-white-icon material-icons"></i></button>';
Function loadContent
has 135 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Plugin.prototype.loadContent = function (index, rec, delay) {
var _this = this;
var _hasPoster = false;
var _img;
Function slide
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Plugin.prototype.slide = function (index, fromTouch, fromThumb) {
var _prevIndex = 0;
for (var i = 0; i < this.___slide.length; i++) {
if (_lgUtils2.default.hasClass(this.___slide[i], 'lg-current')) {
File smooth-scroll.js
has 351 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* smooth-scroll v15.2.0
* Animate scrolling to anchor links
* (c) 2019 Chris Ferdinandi
* MIT License
Function SmoothScroll
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var SmoothScroll = function (selector, options) {
//
// Variables
//
Function 1
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
1: [function(require, module, exports) {
(function(global, factory) {
if (typeof define === "function" && define.amd) {
define([], factory);
} else if (typeof exports !== "undefined") {
Function Body
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Body() {
this.bodyUsed = false;
this._initBody = function(body) {
this._bodyInit = body;
Function Enumerator
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Enumerator = function () {
function Enumerator(Constructor, input) {
this._instanceConstructor = Constructor;
this.promise = new Constructor(noop);
Function zoomDrag
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Zoom.prototype.zoomDrag = function() {
var _this = this;
var startCoords = {};
var endCoords = {};
Function zoomSwipe
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Zoom.prototype.zoomSwipe = function() {
var _this = this;
var startCoords = {};
var endCoords = {};
var isMoved = false;
Function structure
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Plugin.prototype.structure = function () {
var list = '';
var controls = '';
var i = 0;
var subHtmlCont = '';