Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
isabelle-dr opened this issue Jan 9, 2022 · 0 comments
Open

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

isabelle-dr opened this issue Jan 9, 2022 · 0 comments

Comments

@isabelle-dr
Copy link

Issue by barbeau
Feb 12, 2020
Originally opened as CUTR-at-USF#364


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

@isabelle-dr isabelle-dr added this to the v1.1 milestone Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant