Showing 297 of 530 total issues
File bootstrapValidator.js
has 5222 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* BootstrapValidator (http://bootstrapvalidator.com)
* The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
*
* @version v0.5.2, built on 2014-09-25 4:01:07 PM
File bootstrapValidator.js
has 5222 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* BootstrapValidator (http://bootstrapvalidator.com)
* The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
*
* @version v0.5.2, built on 2014-09-25 4:01:07 PM
File jquery.pagedown-bootstrap.combined.js
has 2039 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var Markdown;
if (typeof exports === "object" && typeof require === "function") // we're in a CommonJS (e.g. Node.js) module
Markdown = exports;
else
Function color
has a Cognitive Complexity of 224 (exceeds 5 allowed). Consider refactoring. Open
Open
color : function(target, prop) {
this.required = true; // refuse empty values?
this.adjust = true; // adjust value to uniform notation?
- 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 bootstrap.js
has 1548 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Bootstrap v3.3.4 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
File index.js
has 1339 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var crypto = require("crypto");
var moment = require("moment");
var marked = require("marked");
var joi = require("joi");
var changeCase = require("change-case");
Function color
has 565 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
color : function(target, prop) {
this.required = true; // refuse empty values?
this.adjust = true; // adjust value to uniform notation?
Function _cn
has 497 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_cn: function(value) {
// Basic format check (18 or 15 digits, considering X in checksum)
value = value.trim();
if (!/^\d{15}$/.test(value) && !/^\d{17}[\dXx]{1}$/.test(value)) {
return false;
Function _cn
has 497 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_cn: function(value) {
// Basic format check (18 or 15 digits, considering X in checksum)
value = value.trim();
if (!/^\d{15}$/.test(value) && !/^\d{17}[\dXx]{1}$/.test(value)) {
return false;
Function Converter
has 448 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Markdown.Converter = function () {
var pluginHooks = this.hooks = new HookCollection();
pluginHooks.addNoop("plainLinkText"); // given a URL that was encountered by itself (without markup), should return the link text that's to be given to this link
pluginHooks.addNoop("preConversion"); // called with the orignal text as given to makeHtml. The result of this plugin hook is the actual markdown source that will be cooked
pluginHooks.addNoop("postConversion"); // called with the final cooked HTML code. The result of this plugin hook is the actual output of makeHtml
File jscolor.js
has 821 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jscolor, JavaScript Color Picker
*
* @version 1.4.2
* @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
Function scrollReveal
has 337 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.scrollReveal = (function( window ) {
'use strict'
var _requestAnimFrame
Function URI
has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring. Open
Open
URI : function(uri) { // See RFC3986
this.scheme = null;
this.authority = null;
this.path = '';
- 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 UIManager
has 219 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UIManager(postfix, panels, undoManager, previewManager, commandManager, helpOptions) {
var inputBox = panels.input,
buttons = {}; // buttons.undo, buttons.link, etc. The actual DOM elements.
Function drawPicker
has 193 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drawPicker(x, y) {
if(!jscolor.picker) {
jscolor.picker = {
box : document.createElement('div'),
boxB : document.createElement('div'),
Function _initField
has 179 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initField: function(field) {
var fields = $([]);
switch (typeof field) {
case 'object':
fields = field;
Function _initField
has 179 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initField: function(field) {
var fields = $([]);
switch (typeof field) {
case 'object':
fields = field;
Function UndoManager
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UndoManager(callback, panels) {
var undoObj = this;
var undoStack = []; // A stack of undo states
var stackPtr = 0; // The index of the current state
Function PreviewManager
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PreviewManager(converter, panels, previewRefreshCallback) {
var managerObj = this;
var timeout;
var elapsedTime;
Function updateStatus
has 133 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateStatus: function(field, status, validatorName) {
var fields = $([]);
switch (typeof field) {
case 'object':
fields = field;