Jasonette/JASONETTE-iOS

View on GitHub

Showing 198 of 403 total issues

Avoid deeply nested control flow statements.
Open

          } else if ('category' == name && utils.get(el) && 'rss' == type) {
            item.categories.push(utils.get(el).trim());
          } else if ('dc:subject' == name && utils.get(el)) {
            _categories = utils.get(el).split(' ').map(function (cat){ return cat.trim(); });
            if (_categories.length) item.categories = item.categories.concat(_categories);
Severity: Major
Found in app/Jasonette/rss.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

            if (tempCodePoint > 0x7F) {
              codePoint = tempCodePoint
            }
Severity: Major
Found in app/Jasonette/rss.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                    if(data.address.length){
                        break;
                    }
Severity: Major
Found in app/Jasonette/rss.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
Severity: Major
Found in app/Jasonette/rss.js - About 45 mins to fix

Consider simplifying this complex logical expression.
Open

  if (ctx.customInspect &&
      value &&
      isFunction(value.inspect) &&
      // Filter out the util module, it's inspect function is special
      value.inspect !== exports.inspect &&
Severity: Major
Found in app/Jasonette/rss.js - About 40 mins to fix

Consider simplifying this complex logical expression.
Open

        if(!data.address && isGroup){
            return [];
        }else{
            address = {
                address: data.address || data.text || "",
Severity: Major
Found in app/Jasonette/rss.js - About 40 mins to fix

Function writeOrBuffer has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function writeOrBuffer(stream, state, chunk, encoding, cb) {
Severity: Minor
Found in app/Jasonette/rss.js - About 35 mins to fix

Function writeOrBuffer has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function writeOrBuffer(stream, state, chunk, encoding, cb) {
Severity: Minor
Found in app/Jasonette/rss.js - About 35 mins to fix

Function onwriteError has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function onwriteError(stream, state, sync, er, cb) {
Severity: Minor
Found in app/Jasonette/rss.js - About 35 mins to fix

Function onwriteError has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function onwriteError(stream, state, sync, er, cb) {
Severity: Minor
Found in app/Jasonette/rss.js - About 35 mins to fix

Function writeFloat has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function writeFloat (buf, value, offset, littleEndian, noAssert) {
Severity: Minor
Found in app/Jasonette/rss.js - About 35 mins to fix

Function readableAddChunk has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function readableAddChunk(stream, state, chunk, encoding, addToFront) {
Severity: Minor
Found in app/Jasonette/rss.js - About 35 mins to fix

Function readableAddChunk has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function readableAddChunk(stream, state, chunk, encoding, addToFront) {
Severity: Minor
Found in app/Jasonette/rss.js - About 35 mins to fix

Function writeDouble has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function writeDouble (buf, value, offset, littleEndian, noAssert) {
Severity: Minor
Found in app/Jasonette/rss.js - About 35 mins to fix

Function formatArray has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
Severity: Minor
Found in app/Jasonette/rss.js - About 35 mins to fix

Function read has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

exports.read = function (buffer, offset, isLE, mLen, nBytes) {
Severity: Minor
Found in app/Jasonette/rss.js - About 35 mins to fix

Avoid too many return statements within this function.
Open

      return true;
Severity: Major
Found in app/Jasonette/st.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

                  return template.replace(variable, '');
Severity: Major
Found in app/Jasonette/st.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

          return false;
Severity: Major
Found in app/Jasonette/st.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

                  return evaluated;
Severity: Major
Found in app/Jasonette/st.js - About 30 mins to fix
Severity
Category
Status
Source
Language