lgaticaq/node-cne

View on GitHub

Showing 3 of 3 total issues

File communes.js has 311 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'use strict'

module.exports = [
  'Aisén',
  'Algarrobo',
Severity: Minor
Found in src/communes.js - About 3 hrs to fix

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

    const get = options => {
      options = options || {}
      const commune = options.commune ? options.commune.toLowerCase() : null
      const dist = options.distributor ? options.distributor.toLowerCase() : null
      const fuelType = options.fuelType ? options.fuelType.toLowerCase() : null
    Severity: Minor
    Found in src/index.js - About 1 hr to fix

      Function request has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const request = token => {
        return new Promise((resolve, reject) => {
          const options = {
            hostname: 'api.cne.cl',
            port: 80,
      Severity: Minor
      Found in src/index.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language