e-ucm/rage-analytics-backend

View on GitHub
bin/setup-kibana-index.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function setupDefaultKibanaIndex has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var setupDefaultKibanaIndex = function () {
    esClient.search({
        index: '.kibana',
        type: 'config'
    }, function (error, response) {
Severity: Major
Found in bin/setup-kibana-index.js - About 2 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                                    for (var i = 0; i < hits.length; ++i) {
    
                                        var appData = hits[i];
                                        if (!appData._source.defaultIndex) {
                                            appData._source.defaultIndex = defaultKibanaIndexValue;
    Severity: Major
    Found in bin/setup-kibana-index.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status