The Walk command

Generate an interactive graph report of your debt evolution through time and space.

debt-collector walk
circle-info

The walk command requires a specific configuration in order to work. See the configuration overview for more information.

The walk command works like compare, but instead of comparing 2 revisions, it will walk through commits in time and analyse changes in order to see the evolution of debt through time. It will generate an HTML file report under

node_modules/.cache/debt-collector/report.html

This command is designed to be run on your base branch, either triggered by a cron or when releasing new software version.

circle-exclamation
triangle-exclamation

Configuration overview

More information is provided in the configuration section of this documentation, but here are the basics :

The typescript signature for the walk config

interface Config {
  ...
  walkConfig?: {
    gitCommand: string
    parser: (gitResult: string) => { hash: string; date: string; name: string }[]
    limit?: number
    report?: {
      packages?: { [name: string]: string }
    }
  }
  ...
}
flag
argument
description

--open-report / -o

boolean

open the report in the browser

--config / -c

string: path to the config file

change the default config path

--help

display help for the command

Last updated