vincentbriglia/node-emerchantpay-api

View on GitHub

Showing 4 of 6 total issues

Function Order has 85 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function Order(options) {
  var self = this;

  this.options = options || {};

Severity: Major
Found in lib/apis/order/index.js - About 3 hrs to fix

    Function makeRequest has 72 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function makeRequest(options, callback) {
      options = options || {};
      options.options = options.options || {};
      options.context = options.context || {
        config: {},
    Severity: Major
    Found in lib/request.js - About 2 hrs to fix

      Function post has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          post: function(params, callback) {
            var schema = {
              order_id: {
                description: 'Order ID. If this field is present all other fields are ignored',
                type: 'number',
      Severity: Minor
      Found in lib/apis/order/index.js - About 1 hr to fix

        Function post has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            post: function(params, callback) {
              var schema = {
                notify: {
                  description:
                    'Allows disabling of merchant notifications for this order. Notifications must be enabled, and a notification URL configured in your Account settings. 0 – Disabled, 1 – Enabled (Default)',
        Severity: Minor
        Found in lib/apis/order/index.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language