GSA/code-gov-adapters

View on GitHub
libs/elasticsearch/config/index.js

Summary

Maintainability
A
2 hrs
Test Coverage
F
25%

Function getConfig has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getConfig() {
  const filterMappings = {
    "nested": {
      "license": {
        "path": "permissions.licenses",
Severity: Major
Found in libs/elasticsearch/config/index.js - About 2 hrs to fix

Parsing error: Invalid ecmaVersion.
Open

function getConfig() {
Severity: Minor
Found in libs/elasticsearch/config/index.js by eslint

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

There are no issues that match your filters.

Category
Status