-
Notifications
You must be signed in to change notification settings - Fork 12
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
warning.table.characters_between_fields missing for last record in table #431
Comments
Is this a bug or is the code behaving as desired? I modified the table to look like this:
and validate correctly identifies the characters in the column:
The reason the errors are not reported with the table supplied is the preceding errors on row 2 suppress the later ones on row 5 from this bit of code: validate/src/main/java/gov/nasa/pds/tools/util/TableCharacterUtil.java Lines 229 to 236 in 7006d79
If we only want the first row with column errors, as the code suggests, then this is false positive error. If we want to show all random |
Hmm, tough call. In general I'd like to see all errors/warnings called out with a max of maybe 5 of the same type of error. I think it's acceptable that only the first error gets called out, but I can imagine that a data file would deliberately repeat such an error (Mark Bentley's original example had a data file that was trying to be both fixed-width and comma-separated) and tolerate warnings about that error AND have other bugs that would need attention. Sorry, this may all be no help. |
@al-niessner I think this is functioning as expected. the original ticket I think was not checking the last record in the table. so I think this has already been fixed. per @rchenatjpl's comment, I think that is maybe something we can add a new requirement where we can maybe allow users to disable WARNINGs as the would like. although, in the end, the summary does say all the warnings are of 1 type, so they can always just ignore those if they know those are not an issue. |
closed per #642 |
π Describe the bug identified during I&T
Report by @rchenatjpl, failed test
π₯Ό Related Test Case(s)
π : Related issues
π¦ #57
β Additional Details
π To Reproduce
Steps to reproduce the behavior see:
π΅οΈ Expected behavior
it would throw a warning for line 4 of this table:
π Version of Software Used
Version 2.2.0-SNAPSHOT
Date 2021-10-26T05:35:59Z
π©Ί Test Data / Additional context
See comments above to create new test data.
π¦ Related requirements
βοΈ Engineering Details
The text was updated successfully, but these errors were encountered: