keymetrics/pm2-io-apm

View on GitHub
src/census/plugins/__tests__/https.spec.ts

Summary

Maintainability
B
4 hrs
Test Coverage

File https.spec.ts has 297 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Copyright 2018, OpenCensus Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License")
 * you may not use this file except in compliance with the License.
Severity: Minor
Found in src/census/plugins/__tests__/https.spec.ts - About 3 hrs to fix

    Function assertSpanAttributes has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        span: Span, httpStatusCode: number, httpMethod: string, hostName: string,
        path: string, userAgent?: string) {
    Severity: Minor
    Found in src/census/plugins/__tests__/https.spec.ts - About 45 mins to fix

      Function doNock has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          url: string, path: string, httpCode: number, respBody: string,
          times?: number) {
      Severity: Minor
      Found in src/census/plugins/__tests__/https.spec.ts - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status