Showing 198 of 403 total issues
Function utf8ToBytes
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function utf8ToBytes (string, units) {
units = units || Infinity
var codePoint
var length = string.length
var leadSurrogate = null
- Create a ticketCreate a ticket
Function _fillout
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_fillout: function(options) {
// Given a template and fill it out with passed slot and its corresponding data
var re = /\{\{(.*?)\}\}/g;
var full_re = /^\{\{((?!\}\}).)*\}\}$/;
var variable = options.variable;
- Create a ticketCreate a ticket
Function write
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Buffer.prototype.write = function write (string, offset, length, encoding) {
// Buffer#write(string)
if (offset === undefined) {
encoding = 'utf8'
length = this.length
- Create a ticketCreate a ticket
Function formatProperty
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
var name, str, desc;
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
if (desc.get) {
if (desc.set) {
- Create a ticketCreate a ticket
Function pipe
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Stream.prototype.pipe = function(dest, options) {
var source = this;
function ondata(chunk) {
if (dest.writable) {
- Create a ticketCreate a ticket
Function decode
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function decode(input) {
// Don't use UCS-2
var output = [],
inputLength = input.length,
out,
- Create a ticketCreate a ticket
Function 30
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],30:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
- Create a ticketCreate a ticket
Function closeTag
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function closeTag (parser) {
if (!parser.tagName) {
strictFail(parser, "Weird empty close tag.")
parser.textNode += "</>"
parser.state = S.TEXT
- Create a ticketCreate a ticket
Function read
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Readable.prototype.read = function(n) {
var state = this._readableState;
state.calledRead = true;
var nOrig = n;
var ret;
- Create a ticketCreate a ticket
Function fromList
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fromList(n, state) {
var list = state.buffer;
var length = state.length;
var stringMode = !!state.decoder;
var objectMode = !!state.objectMode;
- Create a ticketCreate a ticket
Function 29
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],29:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
- Create a ticketCreate a ticket
Function fromList
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fromList(n, state) {
var list = state.buffer;
var length = state.length;
var stringMode = !!state.decoder;
var objectMode = !!state.objectMode;
- Create a ticketCreate a ticket
Function 33
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./lib/_stream_duplex.js":33}],33:[function(require,module,exports){
// a duplex stream is just a stream that is both readable and writable.
// Since JS doesn't have multiple prototypal inheritance, this class
// prototypally inherits from Readable, and then parasitically from
// Writable.
- Create a ticketCreate a ticket
Function wrap
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Readable.prototype.wrap = function(stream) {
var state = this._readableState;
var paused = false;
var self = this;
- Create a ticketCreate a ticket
Function write
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
var e, m, c
var eLen = nBytes * 8 - mLen - 1
var eMax = (1 << eLen) - 1
var eBias = eMax >> 1
- Create a ticketCreate a ticket
Function handleOpenTag
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FeedParser.prototype.handleOpenTag = function (node){
var n = {};
n['#name'] = node.name; // Avoid namespace collissions later...
n['#prefix'] = node.prefix; // The current ns prefix
n['#local'] = node.local; // The current element name, sans prefix
- Create a ticketCreate a ticket
Function wrap
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Readable.prototype.wrap = function(stream) {
var state = this._readableState;
var paused = false;
var self = this;
- Create a ticketCreate a ticket
Function write
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
StringDecoder.prototype.write = function(buffer) {
var charStr = '';
// if our last write ended with an incomplete multibyte character
while (this.charLength) {
// determine how many remaining bytes this buffer has to offer for this char
- Create a ticketCreate a ticket
Function format
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Url.prototype.format = function() {
var auth = this.auth || '';
if (auth) {
auth = encodeURIComponent(auth);
auth = auth.replace(/%3A/i, ':');
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
} else if (!this.meta.title && // We haven't yet parsed all the metadata
(node['#name'] === 'channel' ||
node['#name'] === 'feed' ||
(node['#local'] === 'channel' && (node['#prefix'] === '' || node['#type'] === 'rdf')) ||
(node['#local'] === 'feed' && (node['#prefix'] === '' || node['#type'] === 'atom')) ) ) {
- Create a ticketCreate a ticket