Showing 544 of 841 total issues
Function renderMixin
has 155 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderMixin (Vue) {
Vue.prototype.$nextTick = function (fn) {
nextTick(fn, this);
};
Function 6
has 150 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"4":4}],6:[function(require,module,exports){
module.exports = {
"aliceblue": [240, 248, 255],
"antiquewhite": [250, 235, 215],
"aqua": [0, 255, 255],
Function renderCalendar
has 149 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderCalendar: function(side) {
//
// Build the matrix of dates that will populate the calendar
//
Function 44
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],44:[function(require,module,exports){
'use strict';
module.exports = function(Chart) {
Function exports
has 145 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(Chart) {
var helpers = Chart.helpers;
var defaultConfig = {
Function 38
has 142 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],38:[function(require,module,exports){
'use strict';
module.exports = function(Chart) {
Function exports
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(Chart) {
var helpers = Chart.helpers;
var globalDefaults = Chart.defaults.global;
Function lifecycleMixin
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function lifecycleMixin (Vue) {
Vue.prototype._mount = function (
el,
hydrating
) {
Function setup
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setup: function() {
var self = this;
var settings = self.settings;
var eventNS = self.eventNS;
var $window = $(window);
Function 20
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],20:[function(require,module,exports){
'use strict';
module.exports = function(Chart) {
Function createDataTable
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var createDataTable = function (chart, options, chartType) {
var datasets = [];
var labels = [];
var colors = chart.options.colors || defaultColors;
Function exports
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(Chart) {
var helpers = Chart.helpers;
Chart.defaults.radar = {
Function Callbacks
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.Callbacks = function( options ) {
// Convert options from String-formatted to Object-formatted if needed
// (we check in cache first)
options = typeof options === "string" ?
Consider simplifying this complex logical expression. Open
Open
if ( event.pageX == null && original.clientX != null ) {
eventDoc = event.target.ownerDocument || document;
doc = eventDoc.documentElement;
body = eventDoc.body;
Function draw
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function() {
var me = this;
var vm = me._view;
var spanGaps = vm.spanGaps;
var fillPoint = vm.scaleZero;
Method update_state
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
Open
def update_state(result)
check_type =
if respond_to?(:check_type)
self.check_type
elsif respond_to?(:invert)
- 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 addTimeToArrayFromToken
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addTimeToArrayFromToken(token, input, config) {
var a, datePartArray = config._a;
switch (token) {
// QUARTER
Function selectize
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.selectize = function(settings_user) {
var defaults = $.fn.selectize.defaults;
var settings = $.extend({}, defaults, settings_user);
var attr_data = settings.dataAttr;
var field_label = settings.labelField;
Function 22
has 112 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],22:[function(require,module,exports){
'use strict';
module.exports = function(Chart) {
// Global Chart canvas helpers object for drawing items to canvas
Function exports
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(Chart) {
// Global Chart canvas helpers object for drawing items to canvas
var helpers = Chart.canvasHelpers = {};
helpers.drawPoint = function(ctx, pointStyle, radius, x, y) {