-
Notifications
You must be signed in to change notification settings - Fork 3
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
Lenient BedParser #3
Conversation
Lenient parser logs the parsing errors and keeps going, strict parser throws an exception. Also added comments to parser's methods.
As per pull request review suggestion
At the moment the default mode is LENIENT and all errors are hidden (debug logging usually is off) so a developer cannot figure out what percent of file was actually parsed, e.g. 2 lines of 100500 or 100% lines. Is it better to add some errors counter into BedParser or change default mode to strict one? |
Each line can:
We can offer those three numbers as properties of |
I think one is enough: |
Following the pull request review
Added the respective property and some tests for it. |
Related to JetBrains-Research/jbr#62.
BedParser
now has stringency property. In lenient mode (default), the parser skips any lines it can't parse (it also logs them with debug level). In strict mode, the parser throws an exception on any such line. This new feature is covered by tests.Note: It's actually arguable whether we need strict mode at all. Thoughts are welcome.