Jasonette/JASONETTE-iOS

View on GitHub

Showing 198 of 403 total issues

File rss.js has 8088 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.rss = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/**********************************************************************
 node-feedparser - A robust RSS, Atom, RDF parser for node.
 http://github.com/danmactough/node-feedparser
 Copyright (c) 2011, 2012, 2013 Dan MacTough and contributors
Severity: Major
Found in app/Jasonette/rss.js - About 3 wks to fix

Function 15 has 1216 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./lib/_stream_duplex.js":5,"./lib/_stream_passthrough.js":6,"./lib/_stream_readable.js":7,"./lib/_stream_transform.js":8,"./lib/_stream_writable.js":9,"_process":27,"stream":45}],15:[function(require,module,exports){
(function (Buffer){
// wrapper for non-node envs
;(function (sax) {

Severity: Major
Found in app/Jasonette/rss.js - About 6 days to fix

Function 19 has 1136 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],19:[function(require,module,exports){
(function (global){
/*!
 * The buffer module from node.js, for the browser.
 *
Severity: Major
Found in app/Jasonette/rss.js - About 5 days to fix

Function 1 has 920 lines of code (exceeds 25 allowed). Consider refactoring.
Open

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.rss = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/**********************************************************************
 node-feedparser - A robust RSS, Atom, RDF parser for node.
 http://github.com/danmactough/node-feedparser
 Copyright (c) 2011, 2012, 2013 Dan MacTough and contributors
Severity: Major
Found in app/Jasonette/rss.js - About 4 days to fix

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

},{"./_stream_transform":36,"core-util-is":38,"inherits":24}],35:[function(require,module,exports){
(function (process){
'use strict';

module.exports = Readable;
Severity: Major
Found in app/Jasonette/rss.js - About 3 days to fix

Function 7 has 612 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./_stream_transform":8,"core-util-is":10,"inherits":11}],7:[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: Major
Found in app/Jasonette/rss.js - About 3 days to fix

Function 47 has 503 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"buffer":19,"dup":13}],47:[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
Severity: Major
Found in app/Jasonette/rss.js - About 2 days to fix

Function 50 has 431 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

Function write has 393 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function write (chunk) {
  var parser = this
  if (this.error) throw this.error
  if (parser.closed) return error(parser,
    "Cannot write after close. Assign an onready handler.")
Severity: Major
Found in app/Jasonette/rss.js - About 1 day to fix

Function 37 has 347 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./_stream_duplex":33,"core-util-is":38,"inherits":24}],37:[function(require,module,exports){
// A bit simpler than readable streams.
// Implement an async ._write(chunk, encoding, cb), and it'll handle all
// the drain event emission and buffering.

Severity: Major
Found in app/Jasonette/rss.js - About 1 day to fix

Function handleMeta has 317 lines of code (exceeds 25 allowed). Consider refactoring.
Open

FeedParser.prototype.handleMeta = function handleMeta (node, type, options) {
  if (!type || !node) return {};

  var meta = {}
    , normalize = !options || (options && options.normalize)
Severity: Major
Found in app/Jasonette/rss.js - About 1 day to fix

File st.js has 671 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function() {
  var $context = this;
  var root; // root context
  var Helper = {
    is_template: function(str) {
Severity: Major
Found in app/Jasonette/st.js - About 1 day to fix

Function handleItem has 296 lines of code (exceeds 25 allowed). Consider refactoring.
Open

FeedParser.prototype.handleItem = function handleItem (node, type, options){
  if (!type || !node) return {};

  var item = {}
    , normalize = !options || (options && options.normalize)
Severity: Major
Found in app/Jasonette/rss.js - About 1 day to fix

Function 28 has 290 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],28:[function(require,module,exports){
(function (global){
/*! https://mths.be/punycode v1.4.0 by @mathias */
;(function(root) {

Severity: Major
Found in app/Jasonette/rss.js - About 1 day to fix

Function 9 has 235 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./_stream_duplex":5,"core-util-is":10,"inherits":11}],9:[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: Major
Found in app/Jasonette/rss.js - About 1 day to fix

Function 23 has 207 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],23:[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
Severity: Major
Found in app/Jasonette/rss.js - About 1 day to fix

Function resolveObject has 199 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Url.prototype.resolveObject = function(relative) {
  if (util.isString(relative)) {
    var rel = new Url();
    rel.parse(relative, false, true);
    relative = rel;
Severity: Major
Found in app/Jasonette/rss.js - About 7 hrs to fix

Function 3 has 195 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],3:[function(require,module,exports){

// expose to the world
module.exports = parser;

Severity: Major
Found in app/Jasonette/rss.js - About 7 hrs to fix

Function run has 184 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    run: function(template, data) {
      var result;
      var fun;
      if (typeof template === 'string') {
        // Leaf node, so call TRANSFORM.fillout()
Severity: Major
Found in app/Jasonette/st.js - About 7 hrs to fix

Function parse has 170 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
  if (!util.isString(url)) {
    throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
  }

Severity: Major
Found in app/Jasonette/rss.js - About 6 hrs to fix
Severity
Category
Status
Source
Language