leafygreen/mops-cli

View on GitHub

Showing 3 of 7 total issues

Function writeCSV has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

MetricsWriter.prototype.writeCSV = function() {
    var metricNames = Object.keys(this.metrics).sort();
    var minTimestamp;
    var maxTimestamp;

Severity: Major
Found in lib/util/MetricsWriter.js - About 3 hrs to fix

    Function openJSONInEditor has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        openJSONInEditor: function(json) {
            function checksum (str) {
                return crypto
                    .createHash('md5')
                    .update(str, 'utf8')
    Severity: Minor
    Found in lib/util/editorUtil.js - About 1 hr to fix

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

          getRequiredOptions: function(schema, cliOptions, mopsConfig) {
              var options = {};
              var deferred = q.defer();
              var properties = Object.keys(schema.properties);
      
      
      Severity: Minor
      Found in lib/util/promptUtil.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language