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

Enforce line and column indices for all language modules #589

Merged
merged 2 commits into from
Aug 23, 2022

Conversation

tsaglam
Copy link
Member

@tsaglam tsaglam commented Aug 12, 2022

Remove the possibility to use the singular index in frontends, thus enforcing line and column indices for all language modules. Currently, all language modules support this, and new ones will be required to do so. For more information see this comment. Detailed changes:

  • Remove Language#supportsColumns() (as we now assume this is always true)
  • Remove Token.getIndex() as this is now no longer needed
  • Adapt the ComparisonReportMapper accordingly

@tsaglam tsaglam added enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change labels Aug 12, 2022
@tsaglam tsaglam requested a review from a team August 19, 2022 06:32
@tsaglam tsaglam added this to the v4.0.0 milestone Aug 19, 2022
# Conflicts:
#	jplag/src/main/java/de/jplag/reporting/reportobject/mapper/ComparisonReportMapper.java
@tsaglam tsaglam marked this pull request as ready for review August 23, 2022 13:10
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@tsaglam tsaglam merged commit 6b8dd84 into master Aug 23, 2022
@dfuchss dfuchss deleted the enforce-lines branch September 6, 2022 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants