Skip to content
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

[core] Fix line/col numbers in TokenMgrError #4694

Merged
merged 4 commits into from Jan 5, 2024

Conversation

oowekyala
Copy link
Member

Describe the PR

Not sure why I forgot to pull request this. Maybe laziness to write tests. Will add one soon.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

Ref pmd#4635

Col number of zero may happen when the error is reported
on a newline. In the rest of PMD a newline is considered
to sit at the last index of the previous line. So the index
is now the first character of the next line, which is slightly
wrong but that doesn't matter much.
@pmd-test
Copy link

pmd-test commented Sep 28, 2023

1 Message
📖 Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Download full report as build artifact
Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Download full report as build artifact

Generated by 🚫 Danger

@adangel adangel self-assigned this Jan 5, 2024
@adangel adangel added this to the 7.0.0 milestone Jan 5, 2024
@adangel adangel force-pushed the issue4635-cpd-lexical-error branch from d2fe3f1 to fb0e9c5 Compare January 5, 2024 13:55
@adangel adangel marked this pull request as ready for review January 5, 2024 13:58
@adangel adangel merged commit b4781ad into pmd:master Jan 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants