01alchemist/sls-yaml

View on GitHub
src/helm-template/index.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Function decodeHelmTemplates has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function decodeHelmTemplates(data: string) {
  /* istanbul ignore next */
  if (!data) {
    return data;
  }
Severity: Major
Found in src/helm-template/index.ts - About 2 hrs to fix

    Function encodeHelmTemplates has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function encodeHelmTemplates(data: string) {
      const lines = data.split("\n");
      return lines
        .map(line => {
          if (line) {
    Severity: Minor
    Found in src/helm-template/index.ts - About 1 hr to fix

      Function readHelmTemplateSync has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function readHelmTemplateSync(
        pathOrData: Path | Buffer,
        parent?: ParentObject,
        context?: any
      ) {
      Severity: Minor
      Found in src/helm-template/index.ts - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status