Showing 483 of 2,557 total issues
Function 31
has 184 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],31:[function(_dereq_,module,exports){
(function (global){
/*! http://mths.be/utf8js v2.0.0 by @mathias */
;(function(root) {
Function submit
has 183 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
submit : function() {
var blueprintCreateJSON = {
templateComponents:'component0',
dockercontainerpathstitle: '',
dockerlaunchparameters: '',
File discoveryResourcesCtrl.js
has 466 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function (angular) {
"use strict";
angular.module('dashboard.analytics')
.controller('discoveryResourcesCtrl', ['$scope', '$rootScope', '$state','analyticsServices', 'genericServices','$timeout','toastr','$modal','confirmbox', function ($scope,$rootScope,$state,analyticsServices,genSevs,$timeout,toastr,$modal,confirmbox){
var disResrc=this;
Function 44
has 179 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./is-buffer":45,"isarray":46}],44:[function(_dereq_,module,exports){
/**
* Module dependencies.
*/
Function ok
has 156 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ok: function () {
//these values are common across all task types
var taskJSON={};
if($scope.checkBotType){
taskJSON = {
Function createList
has 154 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
capRept.createList = function () {
capRept.filterValue='';
capRept.listGrid=[];
var fltrObj=$rootScope.filterNewEnt;
Function init
has 148 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.init = function(_ngModel) {
ngModel = _ngModel;
ngModelOptions = ngModel.$options || uiDatetimePickerConfig.ngModelOptions;
$scope.buttonBar = angular.isDefined($attrs.buttonBar) ? $scope.$parent.$eval($attrs.buttonBar) : uiDatetimePickerConfig.buttonBar;
File angular-toastr.tpls.js
has 406 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
'use strict';
angular.module('toastr', [])
.factory('toastr', toastr);
Function routeConfig
has 142 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function routeConfig($stateProvider, $urlRouterProvider, $httpProvider, modulePermissionProvider) {
"use strict";
var val = window.localStorage.getItem('catAuthToken');
var modulePerms = modulePermissionProvider.$get();
if (val) {
Function 18
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./polling":18,"component-emitter":9,"component-inherit":21,"debug":22,"xmlhttprequest":20}],18:[function(_dereq_,module,exports){
/**
* Module dependencies.
*/
Function 16
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./polling-jsonp":16,"./polling-xhr":17,"./websocket":19,"xmlhttprequest":20}],16:[function(_dereq_,module,exports){
(function (global){
/**
* Module requirements.
Function refresh
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Terminal.prototype.refresh = function(start, end) {
var x
, y
, i
, line
Consider simplifying this complex logical expression. Open
Open
if (stringifySupported) {
// A test function object with a custom `toJSON` method.
(value = function () {
return 1;
}).toJSON = value;
Function initDates
has 112 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initDates: function ()
{
if (this.$element.val().length > 0)
{
if (typeof (this.params.format) !== 'undefined' && this.params.format !== null)
Function controller
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {
var ctrl = this;
var latestKey = 0;
var messages = this.messages = {};
File applicationCtrl.js
has 351 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* Copyright (C) Relevance Lab Private Limited- All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Relevance UI Team,
* Aug 2015
File instanceServices.js
has 350 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* Copyright (C) Relevance Lab Private Limited- All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Relevance UI Team,
* Aug 2015
Function _notify
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _notify(map) {
var options = _getOptions();
if (shouldExit()) { return; }
Function dtPromiseRenderer
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dtPromiseRenderer($q, $timeout, $log, DTRenderer, DTRendererService, DTInstanceFactory) {
/**
* Renderer for displaying with a promise
* @param options the options
* @returns {{options: *}} the renderer
Consider simplifying this complex logical expression. Open
Open
if (placement[2]) {
var viewportOffset = this.viewportOffset(hostElem);
var targetElemStyle = $window.getComputedStyle(targetElem);
var adjustedSize = {