portainer/portainer

View on GitHub
app/kubernetes/rest/pod.js

Summary

Maintainability
A
1 hr
Test Coverage

Function KubernetesPodsFactory has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function KubernetesPodsFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
    'use strict';
    return function (namespace) {
      const url = API_ENDPOINT_ENDPOINTS + '/:endpointId/kubernetes/api/v1' + (namespace ? '/namespaces/:namespace' : '') + '/pods/:id/:action';
      return $resource(
Severity: Minor
Found in app/kubernetes/rest/pod.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status