sergeysova/es2-result-option

View on GitHub

Showing 10 of 17 total issues

File index.js has 392 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* eslint-disable id-match, no-use-before-define */
const FL = require('fantasy-land')
const show = require('sanctuary-show')


Severity: Minor
Found in index.js - About 5 hrs to fix

    File index.js has 335 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* eslint-disable id-match, no-use-before-define */
    
    const ø = Symbol('ø')
    
    
    
    Severity: Minor
    Found in fantasy/index.js - About 4 hrs to fix

      Err has 27 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Err {
        static of(value) {
          return new Err(value)
        }
      
      
      Severity: Minor
      Found in fantasy/index.js - About 3 hrs to fix

        Ok has 27 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class Ok {
          static of(value) {
            return new Ok(value)
          }
        
        
        Severity: Minor
        Found in fantasy/index.js - About 3 hrs to fix

          prototype has 25 functions (exceeds 20 allowed). Consider refactoring.
          Open

          Err.prototype = {
          
            map(/* okƒ */) {
              return this
            },
          Severity: Minor
          Found in index.js - About 2 hrs to fix

            prototype has 25 functions (exceeds 20 allowed). Consider refactoring.
            Open

            Ok.prototype = {
            
              map(okƒ) {
                return Ok.of(okƒ(this[ø]))
              },
            Severity: Minor
            Found in index.js - About 2 hrs to fix

              `` has 24 functions (exceeds 20 allowed). Consider refactoring.
              Open

              Object.assign(None.prototype, {
              
                map(/* ƒ */) {
                  return None.of()
                },
              Severity: Minor
              Found in index.js - About 2 hrs to fix

                `` has 24 functions (exceeds 20 allowed). Consider refactoring.
                Open

                Object.assign(Some.prototype, {
                  map(ƒ) {
                    return Some.of(ƒ(this[ø]))
                  },
                
                
                Severity: Minor
                Found in index.js - About 2 hrs to fix

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

                  class Some {
                    constructor(value) {
                      this[ø] = value
                    }
                  
                  
                  Severity: Minor
                  Found in fantasy/index.js - About 2 hrs to fix

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

                    class None {
                      static of(/* value */) {
                        return new None()
                      }
                    
                    
                    Severity: Minor
                    Found in fantasy/index.js - About 2 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language