cedadev / checksit

File-checking made simple
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

How to interpret checks that do not fit the template model? #8

Open agstephens opened 2 years ago

agstephens commented 2 years ago

E.g.:

Idea: Make the reader for that format undertake those tasks, but include a callback that records them as check results:

It might then be necessary to put all the format checks in a separate config, or have a way of easily listing them - so that you could specify them individually and even decide to switch all/some of them on or off.

Imagine that you could do this:

[settings]
format_checks = group:core-global-attrs group:var-long-names vars-have-standard-name

Where some imply a group of format-checks and others are individual checks.

And/or override with command-line:

checksit check --format-checks=badc-csv:core
checksit check --format-checks=ignore
checksit check --format-checks=all
checksit check --format-checks=default   # e.g. all for that format

How to group and link different checks?

How to group and link them: