AlexRogalskiy/java-patterns

View on GitHub
packages/schema-diff/src/index.ts

Summary

Maintainability
B
4 hrs
Test Coverage

File index.ts has 273 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Copyright (C) 2022 SensibleMetrics, Inc. (http://sensiblemetrics.io/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
Severity: Minor
Found in packages/schema-diff/src/index.ts - About 2 hrs to fix

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

      new Promise((resolve, reject) => {
        let output = ""
        const delta = spawn("git", [
          "rev-list",
          "--left-right",
    Severity: Minor
    Found in packages/schema-diff/src/index.ts - About 1 hr to fix

      Function getChangedFiles has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        new Promise((resolve, reject) => {
          let changedBlob = ""
          const changed = spawn("git", ["diff", "--name-status", "--relative", "origin/master"])
          changed.stdout.on("data", (data) => {
            changedBlob += data
      Severity: Minor
      Found in packages/schema-diff/src/index.ts - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status