cloudfoundry/stratos

View on GitHub
src/frontend/packages/kubernetes/src/kubernetes/workloads/release/tabs/helm-release-resource-graph/helm-release-resource-graph.component.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function ngOnInit has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  ngOnInit() {

    // Listen for the graph
    this.graph = combineLatest(
      this.helper.fetchReleaseGraph(),

    Function graph has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        ).subscribe(([g, report]) => {
          const newNodes: CustomHelmReleaseGraphNode[] = [];
          Object.values(g.nodes).forEach((node: HelmReleaseGraphNode) => {
            const colors = this.getColor(node.data.status);
            const icon = getIcon(node.data.kind);

      There are no issues that match your filters.

      Category
      Status