Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Add command-line option to ignore certain errors/warnings #364

Open
barbeau opened this issue Feb 12, 2020 · 0 comments
Open

Add command-line option to ignore certain errors/warnings #364

barbeau opened this issue Feb 12, 2020 · 0 comments
Milestone

Comments

@barbeau
Copy link
Member

barbeau commented Feb 12, 2020

Summary:

When running in batch mode, users may want to ignore certain errors or warnings by using command-line parameters.

For example, we have this capability in the transit-feed-quality-calculator:
https://github.com/CUTR-at-USF/transit-feed-quality-calculator#command-line-options

-errorsToIgnore "E017,E018" - (Optional) - A comma-delimited list of errors to ignore when calculating summary error results and generating the Excel file. By default errors that examine sequential feed iterations (E017, E018) are ignored (as archived files may not have been collected iteratively) (see TransitFeedQualityCalculator.java, but setting a value via the command-line parameter will overwrite the default value.
-warningsToIgnore "W007,W008" - (Optional) - A comma-delimited list of warnings to ignore when calculating summary warnings results and generating the Excel file. By default warnings that examine sequential feed iterations (W007, W008) are ignored (as archived files may not have been collected iteratively) (see TransitFeedQualityCalculator.java, but setting a value via the command-line parameter will overwrite the default value.

However, the transit-feed-quality-calculator does this by filtering results after-the-fact. See:
https://github.com/CUTR-at-USF/transit-feed-quality-calculator/blob/master/src/main/java/edu/usf/cutr/transitfeedqualitycalculator/TransitFeedQualityCalculator.java#L43

It would be nice to have a filtering feature built into the library itself.

Steps to reproduce:

Try to run the validator while ignoring certain errors or warnings so they don't appear in output

Expected behavior:

Ignore certain errors or warnings so they don't appear in output

Observed behavior:

This isn't possible

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant