Showing 4 of 296 total issues
Function parseCommand
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const parseCommand = function(passedArguments) {
program
.command('*')
.description('A CLI for the Tenon Node')
.option(
Function parseCommand
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const parseCommand = function(passedArguments) {
decache('commander');
const program = require('commander');
program
Function parseFormat
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const parseFormat = (json) => {
switch (allOptions.format) {
case 'json':
// Tenon returns resuls in JSON, so it's already formatted correctly
return new Promise((resolve) => {
Function parseFormat
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {