lgaticaq/node-cne

View on GitHub
src/index.js

Summary

Maintainability
A
2 hrs
Test Coverage
A
100%

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

      There are no issues that match your filters.

      Category
      Status