Feature: Configurable default params
Often when making stats on the same repo, the same conditions apply: eg, the same src/
folder, mostly caring about the last 2 years, etc.
I'd like to have the ability to set defaults in config.json
that apply under stats override them.
It could look like:
//config.json
{
defaults: {
path_in_repo: "/src/java/com.company.project",
start: "2022-01-01",
regex_count: {
rg_args: "-g SomeFileToExclude"
}
}
Note that this also lets you set defaults per stat type, in the example all regex_count
stats will have those rg_args unless overriden.
I can see the option to have these be at the repo level and the global level (shared for all repos), but for now I'll leave them at the repo level. Most of my uses are single-repo per config file anyway.