jaredallard/shinojs

View on GitHub

Showing 2 of 9 total issues

Function send has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  async send(params) {
    debug('dm:create', 'sending DM')

    if(!params.to.identifier) throw new Error(`Expected user id, got '${params.to.identifier}'`)

Severity: Minor
Found in adapters/twitter.js - About 1 hr to fix

    Function addValidator has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const addValidator = (validator, root) => {
      root = root ? `${root}.` : '' // append dot notation
    
      // Generate a base address if not supplied
      let address          = validator.address || randStr({ length: 10 });
    Severity: Minor
    Found in lib/events.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language