1.1.0 • Published 5 years ago

diffkit v1.1.0

Weekly downloads
10
License
mit
Repository
github
Last release
5 years ago

diffkit-cli

commands

  • diffkit init : create a new diffkit configuration
  • diffkit quest : add a new quest. Quests are goals for your code.
  • diffkit count : see the current values for all quests.

  • diffkit cinch : Change the baselines to strictest passable valuable for the code.

  • diffkit check : Same as count, but it exits with a code of 1 if the counts aren't good enough for the baselines.

extended diffkit count usage:

  • use diffkit --check to have the process fail when a count is below a baseline
  • use DIFFKIT_API_KEY=[your api key] diffkit --record to record counts to diffkit.com.

using an alernative configuration file

Specify it with the --config flag. For a config named filename.json, diffkit [command] --config=filename.json

example searches

  • count all javascript files: git ls-files "*.js" | wc -l
  • count all instances of the string TODO: git grep TODO | wc -l

Development

The development README is here.