dohrm/scalts

View on GitHub

Showing 5 of 79 total issues

File Future.ts has 277 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* tslint:disable:no-use-before-declare */

import {Try, Success, Failure} from './Try';
import {Optional, Some, None} from './Optional';

Severity: Minor
Found in src/Future.ts - About 2 hrs to fix

    FutureImpl has 23 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class FutureImpl<A> implements Future<A> {
        private completeValue: Optional<Try<A>> = None;
    
        constructor(private _promise: Promise<A>, already?: Try<A>) {
            if (already) {
    Severity: Minor
    Found in src/Future.ts - About 2 hrs to fix

      File Either.ts has 266 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* tslint:disable:no-use-before-declare */
      
      import {Optional, Some, None} from './Optional'
      
      import { Supplier } from './types'
      Severity: Minor
      Found in src/Either.ts - About 2 hrs to fix

        TryImpl has 22 functions (exceeds 20 allowed). Consider refactoring.
        Open

        abstract class TryImpl<A> implements Try<A> {
            isSuccess: boolean;
            isFailure: boolean;
        
            toString(): string {
        Severity: Minor
        Found in src/Try.ts - About 2 hrs to fix

          File Try.ts has 255 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /* tslint:disable:no-use-before-declare */
          
          import {Optional, Some, None} from './Optional'
          import {Either, Left, Right} from './Either'
          
          
          Severity: Minor
          Found in src/Try.ts - About 2 hrs to fix
            Severity
            Category
            Status
            Source
            Language