Jasonette/JASONETTE-iOS

View on GitHub

Showing 198 of 403 total issues

Function 5 has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],5:[function(require,module,exports){
(function (process){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function checkChar has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Tokenizer.prototype.checkChar = function(chr){
    if((chr in this.operators || chr == "\\") && this.escaped){
        this.escaped = false;
    }else if(this.operatorExpecting && chr == this.operatorExpecting){
        this.node = {
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function emit has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

EventEmitter.prototype.emit = function(type) {
  var er, handler, len, args, i, listeners;

  if (!this._events)
    this._events = {};
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function exports has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(qs, sep, eq, options) {
  sep = sep || '&';
  eq = eq || '=';
  var obj = {};

Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function readableAddChunk has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function readableAddChunk(stream, state, chunk, encoding, addToFront) {
  var er = chunkInvalid(state, chunk);
  if (er) {
    stream.emit('error', er);
  } else if (chunk === null) {
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function transform has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    transform: function(obj, serialized) {
      SELECT.$parsed = [];
      SELECT.$progress = null;
      /*
      'selected' is an array that contains items that looks like this:
Severity: Minor
Found in app/Jasonette/st.js - About 1 hr to fix

Function attrib has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function attrib (parser) {
  if (!parser.strict) parser.attribName = parser.attribName[parser.looseCase]()

  if (parser.attribList.indexOf(parser.attribName) !== -1 ||
      parser.tag.attributes.hasOwnProperty(parser.attribName)) {
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function unpipe has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Readable.prototype.unpipe = function(dest) {
  var state = this._readableState;

  // if we're not piping anywhere, then do nothing.
  if (state.pipesCount === 0)
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function clearBuffer has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function clearBuffer(stream, state) {
  state.bufferProcessing = true;
  var entry = state.bufferedRequest;

  if (stream._writev && entry && entry.next) {
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function transformWith has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    transformWith: function(obj, serialized) {
      SELECT.$parsed = [];
      SELECT.$progress = null;
      /*
      *  'selected' is an array that contains items that looks like this:
Severity: Minor
Found in app/Jasonette/st.js - About 1 hr to fix

Function emitDataEvents has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function emitDataEvents(stream, startPaused) {
  var state = stream._readableState;

  if (state.flowing) {
    // https://github.com/isaacs/readable-stream/issues/16
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function fromCodePoint has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                var fromCodePoint = function() {
                        var MAX_SIZE = 0x4000;
                        var codeUnits = [];
                        var highSurrogate;
                        var lowSurrogate;
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function copy has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  if (!start) start = 0
  if (!end && end !== 0) end = this.length
  if (targetStart >= target.length) targetStart = target.length
  if (!targetStart) targetStart = 0
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function unpipe has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Readable.prototype.unpipe = function(dest) {
  var state = this._readableState;

  // if we're not piping anywhere, then do nothing.
  if (state.pipesCount === 0)
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function format has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.format = function(f) {
  if (!isString(f)) {
    var objects = [];
    for (var i = 0; i < arguments.length; i++) {
      objects.push(inspect(arguments[i]));
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

  if (node['#name'] === 'item' ||
      node['#name'] === 'entry' ||
      (node['#local'] === 'item' && (node['#prefix'] === '' || node['#type'] === 'rdf')) ||
      (node['#local'] == 'entry' && (node['#prefix'] === '' || node['#type'] === 'atom'))) { // We have an article!

Severity: Critical
Found in app/Jasonette/rss.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

  } else if ( this.stack.length === 0 &&
              (n['#name'] === 'rss' ||
              (n['#local'] === 'rdf' && utils.nslookup([n['#uri']], 'rdf')) ||
              (n['#local'] === 'feed'&& utils.nslookup([n['#uri']], 'atom')) ) ) {
    Object.keys(n['@']).forEach(function(name) {
Severity: Critical
Found in app/Jasonette/rss.js - About 1 hr to fix

Function removeListener has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

EventEmitter.prototype.removeListener = function(type, listener) {
  var list, position, length, i;

  if (!isFunction(listener))
    throw TypeError('listener must be a function');
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function reresolve has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function reresolve (node, baseurl) {
  if (!node || !baseurl) {
    return false; // Nothing to do.
  }

Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix

Function 40 has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"_process":27}],40:[function(require,module,exports){
(function (global){

/**
 * Module exports.
Severity: Minor
Found in app/Jasonette/rss.js - About 1 hr to fix
Severity
Category
Status
Source
Language