Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add columnCharIndex field to LocalizedMessage #4998
The log method of AbstractCheck stores shifted column number (with expanded tabs) to the LocalizedMessage. This column number cannot be used in XpathFilter as the token with that columnNo might not exist in the tree.
For example, if there is a tab character on line 1, the ANTLR parser will return the token with the columnNo=1, but Checkstyle will print 4 as a columnNo in the violation.
Thus, we need to store the real column number to localized message.