scott-wyatt/trailpack-stripe

View on GitHub

Showing 116 of 254 total issues

Function schema has 124 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static schema (app, Sequelize) {
    let schema = {}
    if (app.config.database.orm === 'waterline' || app.config.database.orm === 'js-data') {
      schema = {
        id: {
Severity: Major
Found in api/models/Bankaccount.js - About 4 hrs to fix

    Function schema has 124 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      static schema (app, Sequelize) {
        let schema = {}
        if (app.config.database.orm === 'waterline' || app.config.database.orm === 'js-data') {
          schema = {
            id: {
    Severity: Major
    Found in api/models/Sku.js - About 4 hrs to fix

      File Invoice.js has 350 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      'use strict'
      
      const Model = require('trails/model')
      
      /**
      Severity: Minor
      Found in api/models/Invoice.js - About 4 hrs to fix

        Function schema has 106 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          static schema (app, Sequelize) {
            let schema = {}
            if (app.config.database.orm === 'waterline' || app.config.database.orm === 'js-data') {
              schema = {
                id: {
        Severity: Major
        Found in api/models/Refund.js - About 4 hrs to fix

          Function schema has 94 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            static schema (app, Sequelize) {
              let schema = {}
              if (app.config.database.orm === 'waterline' || app.config.database.orm === 'js-data') {
                schema = {
                  id: {
          Severity: Major
          Found in api/models/Event.js - About 3 hrs to fix

            Function schema has 94 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              static schema (app, Sequelize) {
                let schema = {}
                if (app.config.database.orm === 'waterline' || app.config.database.orm === 'js-data') {
                  schema = {
                    id: {
            Severity: Major
            Found in api/models/Applicationfeerefund.js - About 3 hrs to fix

              Function schema has 94 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                static schema (app, Sequelize) {
                  let schema = {}
                  if (app.config.database.orm === 'waterline' || app.config.database.orm === 'js-data') {
                    schema = {
                      id: {
              Severity: Major
              Found in api/models/Transferreversal.js - About 3 hrs to fix

                Function schema has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  static schema (app, Sequelize) {
                    let schema = {}
                    if (app.config.database.orm === 'waterline' || app.config.database.orm === 'js-data') {
                      schema = {
                        id: {
                Severity: Major
                Found in api/models/Token.js - About 3 hrs to fix

                  File Charge.js has 318 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  'use strict'
                  
                  const Model = require('trails/model')
                  
                  /**
                  Severity: Minor
                  Found in api/models/Charge.js - About 3 hrs to fix

                    Function schema has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      static schema (app, Sequelize) {
                        let schema = {}
                        if (app.config.database.orm === 'waterline' || app.config.database.orm === 'js-data') {
                          schema = {
                            id: {
                    Severity: Major
                    Found in api/models/Discount.js - About 3 hrs to fix

                      Function schema has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        static schema (app, Sequelize) {
                          let schema = {}
                          if (app.config.database.orm === 'waterline' || app.config.database.orm === 'js-data') {
                            schema = {
                              id: {
                      Severity: Major
                      Found in api/models/Alipayaccount.js - About 3 hrs to fix

                        File Transfer.js has 298 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        'use strict'
                        
                        const Model = require('trails/model')
                        
                        /**
                        Severity: Minor
                        Found in api/models/Transfer.js - About 3 hrs to fix

                          File Subscription.js has 285 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          'use strict'
                          
                          const Model = require('trails/model')
                          
                          /**
                          Severity: Minor
                          Found in api/models/Subscription.js - About 2 hrs to fix

                            Function schema has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              static schema (app, Sequelize) {
                                let schema = {}
                                if (app.config.database.orm === 'waterline' || app.config.database.orm === 'js-data') {
                                  schema = {
                                    id: {
                            Severity: Major
                            Found in api/models/Orderitem.js - About 2 hrs to fix

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

                                static config (app) {
                                  let config = {}
                              
                                  if (app && (app.config.database.orm === 'waterline' || app.config.database.orm === 'js-data')) {
                                    config = {
                              Severity: Major
                              Found in api/models/Subscription.js - About 2 hrs to fix

                                File Bitcoin.js has 271 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                'use strict'
                                
                                const Model = require('trails/model')
                                
                                /**
                                Severity: Minor
                                Found in api/models/Bitcoin.js - About 2 hrs to fix

                                  Function config has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    static config (app) {
                                      let config = {}
                                  
                                      if (app && (app.config.database.orm === 'waterline' || app.config.database.orm === 'js-data')) {
                                        config = {
                                  Severity: Major
                                  Found in api/models/Invoice.js - About 2 hrs to fix

                                    File Stripeaccount.js has 255 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    'use strict'
                                    /* eslint new-cap: ["error", { "capIsNewExceptions": ["ARRAY"] }] */
                                    const Model = require('trails/model')
                                    
                                    /**
                                    Severity: Minor
                                    Found in api/models/Stripeaccount.js - About 2 hrs to fix

                                      File Order.js has 255 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      'use strict'
                                      /* eslint new-cap: ["error", { "capIsNewExceptions": ["ARRAY"] }] */
                                      const Model = require('trails/model')
                                      
                                      /**
                                      Severity: Minor
                                      Found in api/models/Order.js - About 2 hrs to fix

                                        File Card.js has 254 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        'use strict'
                                        
                                        const Model = require('trails/model')
                                        
                                        /**
                                        Severity: Minor
                                        Found in api/models/Card.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language