zodern/meteor-up

View on GitHub
src/swarm-utils.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function findClusters has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function findClusters(serverInfo) {
  const usedNodeIds = [];
  const clusters = currentManagers(serverInfo).reduce((result, manager) => {
    const {
      swarm,
Severity: Minor
Found in src/swarm-utils.js - About 1 hr to fix

    Function showClusters has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function showClusters(clusters, nodeIds) {
      console.log('');
      console.log('=> List of Swarm Clusters:');
    
      Object.keys(clusters).forEach(clusterId => {
    Severity: Minor
    Found in src/swarm-utils.js - About 1 hr to fix

      TODO found
      Open

        // TODO: handle nodes that aren't listed in the config.server
      Severity: Minor
      Found in src/swarm-utils.js by fixme

      There are no issues that match your filters.

      Category
      Status