cloudfoundry/stratos

View on GitHub
build/karma.test.reporter.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function StratosSpecReporter has 108 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var StratosSpecReporter = function (baseReporterDecorator, config) {
    baseReporterDecorator(this);

    const reporterConfig = Object.assign({}, config.stratosReporter);
    this.file = reporterConfig.reportFile || './stratos-test-report.log';
Severity: Major
Found in build/karma.test.reporter.js - About 4 hrs to fix

    Function onRunComplete has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        this.onRunComplete = (browser, result) => {
    
          if (fs.existsSync(this.file)) {
            fs.unlinkSync(this.file);
          }
    Severity: Minor
    Found in build/karma.test.reporter.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status