azukiapp/azk

View on GitHub
src/agent/server.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function installVM has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  installVM(start = false) {
    var vm_name = config("agent:vm:name");
    return async(this, function* () {
      var installed  = yield VM.isInstalled(vm_name);
      var running    = (installed) ? yield VM.isRunnig(vm_name) : false;
Severity: Minor
Found in src/agent/server.js - About 1 hr to fix

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

      _activeDockerMonitor(retry = 3) {
        var docker_host = config("docker:host");
        log.debug(t("docker.monitor.start", { docker_host, retry }));
    
        var stop = () => {
    Severity: Minor
    Found in src/agent/server.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status