atais / Fixed-Length

Scala library for parsing fixed length file format
MIT License
13 stars 12 forks source link

Check if the last field aligns with end of line #5

Closed atais closed 7 years ago

atais commented 7 years ago

Case scenario:

You have a line of length 10. If your case class would contain a description (for non-optional fields) over the 10th index you would get an error during parsing. However, if the line is longer than the description you might not be aware of the information you are losing.

The idea is to inform the user about the skipped content.