yoctore/yocto-paypal

View on GitHub

Showing 3 of 14 total issues

Function createCreditCardAuthorization has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

YoctoPaypal.prototype.createCreditCardAuthorization = function (paymentData) {
  // create a promise deferred
  var deferred = Q.defer();

  // Validation schema of created
Severity: Major
Found in src/index.js - About 2 hrs to fix

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

    YoctoPaypal.prototype.capturePayment = function (id, paymentData) {
      // create a promise deferred
      var deferred = Q.defer();
    
      // schema of request
    Severity: Minor
    Found in src/index.js - About 1 hr to fix

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

      module.exports = function (grunt) {
        // init config
        grunt.initConfig({
          // default package
          pkg       : grunt.file.readJSON('package.json'),
      Severity: Minor
      Found in Gruntfile.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language