Showing 321 of 538 total issues
Function parseResource
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseResource(href, lang, successCallback, failureCallback) {
var baseURL = href.replace(/[^\/]*$/, '') || './';
function evalString(text) {
if (text.lastIndexOf('\\') < 0) return text;
return text.replace(/\\\\/g, '\\').replace(/\\n/g, '\n').replace(/\\r/g, '\r').replace(/\\t/g, '\t').replace(/\\b/g, '\b').replace(/\\f/g, '\f').replace(/\\{/g, '{').replace(/\\}/g, '}').replace(/\\"/g, '"').replace(/\\'/g, "'");
Function register_content_events
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
register_content_events: function(){
var self = this;
var datatable_container =this.$el.find('.dataTables_scrollBody');
datatable_container.off('dragleave dragend drop dragover dragenter drop');
if (self.dislayed_folder_cmisobject && self.dislayed_folder_cmisobject.allowableActions['canCreateDocument']){
Function parseResource
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseResource(href, lang, successCallback, failureCallback) {
var baseURL = href.replace(/[^\/]*$/, '') || './';
function evalString(text) {
if (text.lastIndexOf('\\') < 0) return text;
return text.replace(/\\\\/g, '\\').replace(/\\n/g, '\n').replace(/\\r/g, '\r').replace(/\\t/g, '\t').replace(/\\b/g, '\b').replace(/\\f/g, '\f').replace(/\\{/g, '{').replace(/\\}/g, '}').replace(/\\"/g, '"').replace(/\\'/g, "'");
Function get_datatable_config
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
get_datatable_config: function(){
var l10n = _t.database.parameters;
var self = this;
var config = {
searching: false,
Function StepperManagerClosure
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var StepperManager = (function StepperManagerClosure() {
var steppers = [];
var stepperDiv = null;
var stepperControls = null;
var stepperChooser = null;
Function setHash
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function setHash(hash) {
var pageNumber = void 0,
dest = void 0;
if (hash.indexOf('=') >= 0) {
var params = (0, _ui_utils.parseQueryString)(hash);
Function setHash
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function setHash(hash) {
var pageNumber = void 0,
dest = void 0;
if (hash.indexOf('=') >= 0) {
var params = (0, _ui_utils.parseQueryString)(hash);
Function paintOnCanvas
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function paintOnCanvas(canvasWrapper) {
var renderCapability = (0, _pdfjsLib.createPromiseCapability)();
var result = {
promise: renderCapability.promise,
onRenderContinue: function onRenderContinue(cont) {
Function paintOnCanvas
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function paintOnCanvas(canvasWrapper) {
var renderCapability = (0, _pdfjsLib.createPromiseCapability)();
var result = {
promise: renderCapability.promise,
onRenderContinue: function onRenderContinue(cont) {
Function renderMatches
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function renderMatches(matches) {
if (matches.length === 0) {
return;
}
var textContentItemsStr = this.textContentItemsStr;
Function ProgressBar
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ProgressBar = function () {
function ProgressBar(id) {
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
height = _ref.height,
width = _ref.width,
Function ProgressBar
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ProgressBar = function () {
function ProgressBar(id) {
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
height = _ref.height,
width = _ref.width,
Function renderMatches
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function renderMatches(matches) {
if (matches.length === 0) {
return;
}
var textContentItemsStr = this.textContentItemsStr;
Function SecondaryToolbar
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SecondaryToolbar(options, mainContainer, eventBus) {
_classCallCheck(this, SecondaryToolbar);
this.toolbar = options.toolbar;
this.toggleButton = options.toggleButton;
Function SecondaryToolbar
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SecondaryToolbar(options, mainContainer, eventBus) {
_classCallCheck(this, SecondaryToolbar);
this.toolbar = options.toolbar;
this.toggleButton = options.toggleButton;
Function 1
has 70 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.superagent = 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){
/**
* Expose `Emitter`.
*/
Function updateOperatorList
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateOperatorList: function updateOperatorList(operatorList) {
var self = this;
function cboxOnClick() {
var x = +this.dataset.idx;
Function PasswordPrompt
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PasswordPrompt = function () {
function PasswordPrompt(options, overlayManager) {
var _this = this;
var l10n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _ui_utils.NullL10n;
Function PasswordPrompt
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PasswordPrompt = function () {
function PasswordPrompt(options, overlayManager) {
var _this = this;
var l10n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _ui_utils.NullL10n;
Function open
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open: function open(file, args) {
var _this3 = this;
if (arguments.length > 2 || typeof args === 'number') {
return Promise.reject(new Error('Call of open() with obsolete signature.'));