anephenix/sarus

View on GitHub

Showing 3 of 11 total issues

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
        Severity
        Category
        Status
        Source
        Language