Showing 566 of 915 total issues
File highlight.js
has 7027 lines of code (exceeds 250 allowed). Consider refactoring. Open
!function(e) {
"undefined" != typeof exports ? e(exports) : (window.hljs = e({}),
"function" == typeof define && define.amd && define("hljs", [], function() {
return window.hljs
}
File leaflet.js
has 5216 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
Leaflet, a JavaScript library for mobile-friendly interactive maps. http://leafletjs.com
(c) 2010-2013, Vladimir Agafonkin
(c) 2010-2011, CloudMade
*/
File hello.all.js
has 3731 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*! hellojs v1.12.0 | (c) 2012-2016 Andrew Dodson | MIT https://adodson.com/hello.js/LICENSE */
// ES5 Object.create
if (!Object.create) {
// Shim, Object create
Function WallDisplay
has a Cognitive Complexity of 195 (exceeds 5 allowed). Consider refactoring. Open
function WallDisplay($scope, $stateParams, $interval, $timeout, $location, $http, $window, $resource, AppSettings, SearchService, StatisticsService, AppsService, Fullscreen) {
var vm, flag, allStatuses, nextStatuses, term, count, searchParams, maxStatusCount;
vm = this;
vm.invalidId = false;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File select.js
has 1348 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.12.1 - 2015-07-28T03:50:59.076Z
* License: MIT
Function PhotoSwipeUI_Default
has 640 lines of code (exceeds 25 allowed). Consider refactoring. Open
function(pswp, framework) {
var ui = this;
var _overlayUIUpdated = false,
_controlsVisible = true,
File core.js
has 857 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function(core) {
var _ = require('underscore'),
request = require('request'),
urlLib = require('url');
Function WallDisplay
has 403 lines of code (exceeds 25 allowed). Consider refactoring. Open
function WallDisplay($scope, $stateParams, $interval, $timeout, $location, $http, $window, $resource, AppSettings, SearchService, StatisticsService, AppsService, Fullscreen) {
var vm, flag, allStatuses, nextStatuses, term, count, searchParams, maxStatusCount;
vm = this;
vm.invalidId = false;
File marked.js
has 824 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* marked - a markdown parser
* Copyright (c) 2011-2013, Christopher Jeffrey. (MIT Licensed)
* https://github.com/chjj/marked
*/
Function datetimepickerDirective
has 297 lines of code (exceeds 25 allowed). Consider refactoring. Open
.directive('datetimepicker', ['$log', 'dateTimePickerConfig', function datetimepickerDirective($log, defaultConfig) {
function DateObject() {
var tempDate = new Date();
File photoswipe-ui-default.js
has 655 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*! PhotoSwipe Default UI - 4.0.7 - 2015-03-18
* http://photoswipe.com
* Copyright (c) 2015 Dmitry Semenov; */
/**
*
Function post
has a Cognitive Complexity of 73 (exceeds 5 allowed). Consider refactoring. Open
post: function(url, data, options, callback, callbackID, timeout) {
var _this = this;
var error = _this.error;
var doc = document;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function AdvancedSearchCtrl
has 275 lines of code (exceeds 25 allowed). Consider refactoring. Open
function AdvancedSearchCtrl($http, $scope, $filter, $location, $stateParams, AppSettings, SearchService, MapPopUpTemplateService, MapCreationService) {
var vm = this;
var map = false;
var prevZoomAction, prevPanAction, newZoomAction, newPanAction;
Function link
has 262 lines of code (exceeds 25 allowed). Consider refactoring. Open
link: function(scope, element, attrs, ctrls) {
var $select = ctrls[0];
var ngModel = scope.ngModel = ctrls[1];
var $selectMultiple = scope.$selectMultiple;
Function onopentag
has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring. Open
HTMLMetaHandler.prototype.onopentag = function(name, attributes) {
if (this._end) return;
name = name.toUpperCase();
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _finalMerge
has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring. Open
HTMLMetaHandler.prototype._finalMerge = function() {
this._end = true;
var that = this;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function exports
has 255 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function(app) {
app.get('/iframely', function(req, res, next) {
var uri = prepareUri(req.query.uri || req.query.url);
File utils.js
has 590 lines of code (exceeds 250 allowed). Consider refactoring. Open
var events = require('events');
var request = require('request');
var zlib = require('zlib');
var iconv = require('iconv-lite');
var async = require('async');
File iframely.js
has 572 lines of code (exceeds 250 allowed). Consider refactoring. Open
;(function ( $ ) {
/*
Iframely consumer client lib.
Function WallCtrl
has 240 lines of code (exceeds 25 allowed). Consider refactoring. Open
function WallCtrl($scope, $rootScope, $window, $timeout, AppsService, HelloService, SearchService) {
var vm = this;
var term = '';
var isEditing = -1;