portainer/portainer

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

Summary

Maintainability
A
1 hr
Test Coverage

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

function factory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
  'use strict';
  return function (namespace) {
    const url = `${API_ENDPOINT_ENDPOINTS}/:endpointId/kubernetes/apis/networking.k8s.io/v1${namespace ? '/namespaces/:namespace' : ''}/ingresses/:id/:action`;
    return $resource(
Severity: Minor
Found in app/kubernetes/ingress/rest.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status