captaindash/node-mention-api

View on GitHub

Showing 3 of 19 total issues

Function MentionApi has 251 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function MentionApi(options) {

  // Create an new instance event without the `new` keyword

  if (!(this instanceof MentionApi)) {
Severity: Major
Found in lib/MentionApi.js - About 1 day to fix

    File MentionApi.js has 257 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    'use strict';
    
    var Joi = require('joi');
    
    var RequestFactory = require('./RequestFactory');
    Severity: Minor
    Found in lib/MentionApi.js - About 2 hrs to fix

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

      function _decoreWithRequestPaths(context, paths) {
      
        paths.forEach(function(path) {
          if (['post', 'get', 'put', 'delete'].indexOf(path) > -1) {
      
      
      Severity: Minor
      Found in lib/RequestFactory.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language