nowhere-cloud/node-frontend

View on GitHub
assets/_javascripts/heute.js

Summary

Maintainability
A
1 hr
Test Coverage

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

  const getPState = () => {
    /* eslint-disable complexity */
    $.get(`../api/vm/${uuid}/pstate`).done((rsvp) => {
      if (rsvp.Status === 'Success') {
        $('#pstate').html(rsvp.Value.power_state);
Severity: Minor
Found in assets/_javascripts/heute.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status