scolladon/sfdx-git-delta

View on GitHub
src/adapter/GitAdapter.ts

Summary

Maintainability
A
0 mins
Test Coverage

File GitAdapter.ts has 270 lines of code (exceeds 250 allowed). Consider refactoring.
Invalid

import fs from 'fs'
import { join } from 'path'

import { readFile } from 'fs-extra'
import git, { TREE, WalkerEntry, WalkerIterateCallback } from 'isomorphic-git'
Severity: Minor
Found in src/adapter/GitAdapter.ts - About 2 hrs to fix

    Function diffLineWalker has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

    export const diffLineWalker = (config: Config) => {
      const shouldSkip = evaluateShouldSkip(config.source)
    
      return async (filepath: string, trees: (WalkerEntry | null)[]) => {
        if (await shouldSkip(filepath, trees)) {
    Severity: Minor
    Found in src/adapter/GitAdapter.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status