Showing 198 of 403 total issues
Function addListener
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
EventEmitter.prototype.addListener = function(type, listener) {
var m;
if (!isFunction(listener))
throw TypeError('listener must be a function');
- Create a ticketCreate a ticket
Function ReadableState
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ReadableState(options, stream) {
Duplex = Duplex || require('./_stream_duplex');
options = options || {};
- Create a ticketCreate a ticket
Function handleAttributes
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FeedParser.prototype.handleAttributes = function handleAttributes (attrs, el) {
/*
* Using the sax.js option { xmlns: true }
* attrs is an array of objects (not strings) having the following properties
* name - e.g., xmlns:dc or href
- Create a ticketCreate a ticket
Function readableAddChunk
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function readableAddChunk(stream, state, chunk, encoding, addToFront) {
var er = chunkInvalid(state, chunk);
if (er) {
stream.emit('error', er);
} else if (chunk === null || chunk === undefined) {
- Create a ticketCreate a ticket
Function indexOf
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Buffer.prototype.indexOf = function indexOf (val, byteOffset) {
if (byteOffset > 0x7fffffff) byteOffset = 0x7fffffff
else if (byteOffset < -0x80000000) byteOffset = -0x80000000
byteOffset >>= 0
- Create a ticketCreate a ticket
Function WritableState
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WritableState(options, stream) {
Duplex = Duplex || require('./_stream_duplex');
options = options || {};
- Create a ticketCreate a ticket
Function 2
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./utils":16,"addressparser":3,"array-indexofobject":4,"readable-stream":14,"sax":15,"util":50}],2:[function(require,module,exports){
/*
* Default namespaces
*
* Lookup by URI
- Create a ticketCreate a ticket
Function slowToString
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function slowToString (encoding, start, end) {
var loweredCase = false
start = start | 0
end = end === undefined || end === Infinity ? this.length : end | 0
- Create a ticketCreate a ticket
Function ReadableState
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ReadableState(options, stream) {
options = options || {};
// the point at which it stops calling _read() to fill the buffer
// Note: 0 is a valid value, means "don't call _read preemptively ever"
- Create a ticketCreate a ticket
Function select
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
select: function(obj, filter, serialized) {
// iterate '$selected'
//
/*
SELECT.$selected = [{
- Create a ticketCreate a ticket
Function byteLength
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function byteLength (string, encoding) {
if (typeof string !== 'string') string = '' + string
var len = string.length
if (len === 0) return 0
- Create a ticketCreate a ticket
Function slice
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Buffer.prototype.slice = function slice (start, end) {
var len = this.length
start = ~~start
end = end === undefined ? len : ~~end
- Create a ticketCreate a ticket
Function SAXStream
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SAXStream (strict, opt) {
if (!(this instanceof SAXStream)) return new SAXStream(strict, opt)
Stream.apply(this)
- Create a ticketCreate a ticket
Function removeAllListeners
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
EventEmitter.prototype.removeAllListeners = function(type) {
var key, listeners;
if (!this._events)
return this;
- Create a ticketCreate a ticket
Function resolveLevel
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resolveLevel (level) {
var els = Object.keys(level);
els.forEach(function(el){
if (Array.isArray(level[el])) {
level[el].forEach(resolveLevel);
- Create a ticketCreate a ticket
Function read
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
var e, m
var eLen = nBytes * 8 - mLen - 1
var eMax = (1 << eLen) - 1
var eBias = eMax >> 1
- Create a ticketCreate a ticket
Function fillout
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fillout: function(data, template, raw) {
// 1. fill out if possible
// 2. otherwise return the original
var replaced = template;
// Run fillout() only if it's a template. Otherwise just return the original string
- Create a ticketCreate a ticket
Function parseEntity
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseEntity (parser) {
var entity = parser.entity
, entityLC = entity.toLowerCase()
, num
, numStr = ""
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (!hostlessProtocol[proto] &&
(slashes || (proto && !slashedProtocol[proto]))) {
// there's a hostname.
// the first instance of /, ?, ;, or # ends the host.
- Create a ticketCreate a ticket
Function doWrite
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function doWrite(stream, state, writev, len, chunk, encoding, cb) {
- Create a ticketCreate a ticket