portainer/portainer

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

Summary

Maintainability
A
1 hr
Test Coverage

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

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

    There are no issues that match your filters.

    Category
    Status