tenon-io/tenon-cli

View on GitHub

Showing 4 of 296 total issues

Function parseCommand has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const parseCommand = function(passedArguments) {
  program
  .command('*')
  .description('A CLI for the Tenon Node')
  .option(
Severity: Major
Found in index.js - About 2 hrs to fix

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

    export const parseCommand = function(passedArguments) {
      decache('commander');
      const program = require('commander');
    
      program
    Severity: Major
    Found in testIndex.js - About 2 hrs to fix

      Function parseFormat has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        const parseFormat = (json) => {
          switch (allOptions.format) {
            case 'json':
              // Tenon returns resuls in JSON, so it's already formatted correctly
              return new Promise((resolve) => {
      Severity: Minor
      Found in tenon-cli.js - About 1 hr to fix

        Function parseFormat has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          var parseFormat = function parseFormat(json) {
            switch (allOptions.format) {
              case 'json':
                // Tenon returns resuls in JSON, so it's already formatted correctly
                return new Promise(function (resolve) {
        Severity: Minor
        Found in bin/tenon-cli.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language