Potential enhancement: LicenseCompareHelper.isTextStandardLicense().getDifferenceMessage() should sort by line then column

Open
#232 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
tooling

Research direction

Start by locating LicenseCompareHelper.isTextStandardLicense().getDifferenceMessage() and inspect how it assembles the listed differences. Confirm the current ordering behavior, then make the result ordered by line number and column number. Done means the message consistently presents every difference in that order, with coverage for the ordering behavior where the project’s existing tests belong.

Written by the indexing model from the issue text.

Description

enhancement

Currently org.spdx.utility.compare.LicenseCompareHelper.isTextStandardLicense().getDifferenceMessage() will list each difference in a seemingly random order, but it would be beneficial if instead they were sorted by line number and then by column number, for readability.

Dominant language
Java
Stars
71
Forks
44
Avg merge
12h 54m
Merged PRs (30d)
7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spdx/Spdx-Java-Library

All issues in spdx/Spdx-Java-Library

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.