mountain-pass/addressr

View on GitHub
src/server2.js

Summary

Maintainability
A
0 mins
Test Coverage

Definition for rule 'unicorn/filename-case' was not found.
Open

import debug from 'debug'
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

    global.esClient = esClient
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

import { esConnect } from '../client/elasticsearch'
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

import debug from 'debug'
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

const logger = debug('api')
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

})
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Avoid nesting promises.
Open

  const p1 = esConnect().then(esClient => {
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Expected catch() or return
Open

  p1.then(() => {
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'unicorn/no-null' was not found.
Open

import debug from 'debug'
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

  logger('connecting es client')
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

    printVersion()
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

    console.log('Addressr - API Server 2')
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

  })
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

  })
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Avoid nesting promises.
Open

  p1.then(() => {
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Each then() should return a value or throw
Open

  p1.then(() => {
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

    console.log('=======================')
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'unicorn/no-process-exit' was not found.
Open

import debug from 'debug'
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

import { printVersion } from '../service/printVersion'
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Each then() should return a value or throw
Open

  const p1 = esConnect().then(esClient => {
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

import { startRest2Server } from './waycharterServer'
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Expected catch() or return
Open

startRest2Server().then(() => {
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'unicorn/prevent-abbreviations' was not found.
Open

import debug from 'debug'
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Each then() should return a value or throw
Open

startRest2Server().then(() => {
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace (esClient with ((esClient)
Open

  const p1 = esConnect().then(esClient => {
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

    logger('es client connected')
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

    console.log('=======================')
Severity: Minor
Found in src/server2.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status