Showing 850 of 1,424 total issues
Function 46
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"../helpers/normalize_reference":7,"../helpers/parse_link_destination":8,"../helpers/parse_link_label":9,"../helpers/parse_link_title":10}],46:[function(require,module,exports){
// Process [link](<to> "stuff")
'use strict';
File jquery.caret.js
has 324 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
Implement Github like autocomplete mentions
http://ichord.github.com/At.js
Copyright (c) 2013 chord.luo@gmail.com
Function registerEventHandlers
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function registerEventHandlers(cm) {
var d = cm.display;
on(d.scroller, "mousedown", operation(cm, onMouseDown));
if (ie)
on(d.scroller, "dblclick", operation(cm, function(e) {
Function table
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function table(state, startLine, endLine, silent) {
var ch, lineText, pos, i, nextLine, rows,
aligns, t, tableLines, tbodyLines;
// should have at least three lines
Function bubbleParticle
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
pJS.fn.modes.bubbleParticle = function(p){
/* on hover event */
if(pJS.interactivity.events.onhover.enable && isInArray('bubble', pJS.interactivity.events.onhover.mode)){
Function debounce
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function debounce(func, wait, options) {
var args,
maxTimeoutId,
result,
stamp,
Function bidiOrdering
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var bidiOrdering = (function() {
// Character types for codepoints 0 to 0xff
var lowTypes = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLL";
// Character types for codepoints 0x600 to 0x6ff
var arabicTypes = "rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmmrrrrrrrrrrrrrrrrrr";
Function signIn
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.signIn = function (req, res, next) {
req.checkBody({
'loginname': {
notEmpty: {
options: [true],
Function getBrowserDetection
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getBrowserDetection = function () {
if (browserdetected) return browserdetected;
var _el = _doc.createElement('DIV'),
Function link
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function link(state, silent) {
var code,
href,
label,
labelEnd,
Function particlesUpdate
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
pJS.fn.particlesUpdate = function(){
for(var i = 0; i < pJS.particles.array.length; i++){
/* the particle */
Function iteratorTemplate
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var iteratorTemplate = function (obj) {
var __p = 'var index, iterable = ' +
(obj.firstArg) +
', result = ' +
Function trigger
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
trigger: function (event, data, elem, onlyHandlers) {
var i, cur, tmp, bubbleType, ontype, handle, special,
eventPath = [ elem || document ],
type = hasOwn.call(event, "type") ? event.type : event,
Function onResize
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.onResize = function (e, page) {
if (!self || !self.win) return false;
var premaxh = self.page.maxh,
Function getImage
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.getImage = function (req, res, next) {
req.checkBody({
'topic_id': {
notEmpty: {
options: [true],
File sign.js
has 307 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var validator = require('validator');
var EventProxy = require('eventproxy');
var config = require('../config');
var User = require('../proxy').User;
var mail = require('../common/mail');
Function Animation
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Animation(elem, properties, options) {
var result,
stopped,
index = 0,
length = animationPrefilters.length,
Function 14
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./ruler":19,"./rules_core/block":32,"./rules_core/inline":33,"./rules_core/linkify":34,"./rules_core/normalize":35,"./rules_core/replacements":36,"./rules_core/smartquotes":37,"./rules_core/state_core":38}],14:[function(require,module,exports){
/** internal
* class ParserInline
*
* Tokenizes paragraph content.
Function ontouchstart
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.ontouchstart = function (e) {
if (self.locked) return false;
//if (e.pointerType && e.pointerType != 2 && e.pointerType != "touch") return false;
Function 37
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],37:[function(require,module,exports){
// Convert straight quotation marks to typographic ones
//
'use strict';