-
Notifications
You must be signed in to change notification settings - Fork 11
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
issue 499: not checking table EOL #583
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation looks odd but should compile just fine!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See below
@jordanpadams @nutjob4life @tloubrieu-jpl ready for review |
src/main/java/gov/nasa/pds/tools/validate/rule/pds4/FileReferenceValidationRule.java
Show resolved
Hide resolved
@al-niessner looks great! can we add a regression test for this bug? |
@jordanpadams wrote:
Add a positive and negative check. The negative check is working. The positive is not. It is failing either because I cannot alter the XML correctly or the reader is broken (it is but this may be an additional break that we cannot work with) or both. Do we know if validate works with a valid CRLF EOL table? It would help divide where to work for the solution. |
Uhg. The current failure that leads to later failures is that the header does not respect the CRLF. If the table declares CRLF is it for whole table or just the rows? |
@jordanpadams @nutjob4life @tloubrieu-jpl Yay! it was all XML after all -- well I could fix it with the XML but do not know if it is actually the correct fix. Now have a positive and negative check for this bug. Ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great. tested successfully.
@al-niessner I know this is annoying, but to keep everyone on the same page with their IDE, would you mind quickly running through the process the integrate the Google Style Guide into your IDE? I think you are using Eclipse, which would be this article, especially the auto-style updates Eclipse can do whenever you save a file. I know we all have our own style, this just helps provide some consistency across the team so we don't have tons of whitespace updates intermingled with actual code updates.
@al-niessner looks like you fixed the offset issue, which hopefully answered this question, but for |
🗒️ Summary
Applied two changes. Made a strange failure turn into a pass in file referencing. In table checking, added checking the end of the line in a fixed or formatted table like simply deliminated ones.
⚙️ Test Data and/or Report
♻️ Related Issues
#499