anephenix/sarus

View on GitHub
src/index.ts

Summary

Maintainability
B
5 hrs
Test Coverage
A
98%

File index.ts has 271 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// File Dependencies
import {
  ALLOWED_PROTOCOLS,
  WS_EVENT_NAMES,
  DATA_STORAGE_TYPES,
Severity: Minor
Found in src/index.ts - About 2 hrs to fix

    Sarus has 21 functions (exceeds 20 allowed). Consider refactoring.
    Open

    export default class Sarus {
      // Constructor params
      url: URL;
      binaryType?: BinaryType;
      protocols?: string | Array<string>;
    Severity: Minor
    Found in src/index.ts - About 2 hrs to fix

      Function constructor has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        constructor(props: SarusClassParams) {
          // Extract the properties that are passed to the class
          const {
            url,
            binaryType,
      Severity: Minor
      Found in src/index.ts - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status