Closed znichollscr closed 1 month ago
As a user, we don't always want validation to fail if the cf-checker spits out warnings. For example, the solar data shouldn't fail because of the month warning business (see https://github.com/PCMDI/input4MIPs_CVs/issues/17#issuecomment-2255734485).
Add a flag to all validation related-commands, --ignore-cf-checker-warnings. This should cause warnings from the CF-checker to not cause a failure of the file validation.
--ignore-cf-checker-warnings
The cf-checker's convention is to exit with a negative error code if only warnings are found, see https://github.com/cedadev/cf-checker/blob/c0486c606f7cf4d38d3b484b427726ce1bde73ee/src/cfchecker/cfchecks.py#L3525
The motivation
As a user, we don't always want validation to fail if the cf-checker spits out warnings. For example, the solar data shouldn't fail because of the month warning business (see https://github.com/PCMDI/input4MIPs_CVs/issues/17#issuecomment-2255734485).
The proposed solution
Add a flag to all validation related-commands,
--ignore-cf-checker-warnings
. This should cause warnings from the CF-checker to not cause a failure of the file validation.Alternatives
Additional context
The cf-checker's convention is to exit with a negative error code if only warnings are found, see https://github.com/cedadev/cf-checker/blob/c0486c606f7cf4d38d3b484b427726ce1bde73ee/src/cfchecker/cfchecks.py#L3525