Skip to content

27: Support location specification item IDs at a certain line. - #28

Open
redcatbear wants to merge 2 commits into
mainfrom
refactoring/27_asciidoc-plugin-does-not-compile-against-oft-4.5.0
Open

27: Support location specification item IDs at a certain line.#28
redcatbear wants to merge 2 commits into
mainfrom
refactoring/27_asciidoc-plugin-does-not-compile-against-oft-4.5.0

Conversation

@redcatbear

Copy link
Copy Markdown
Contributor

Closes #27.

@redcatbear
redcatbear requested a review from sophokles73 August 16, 2026 09:09
@redcatbear redcatbear self-assigned this Aug 16, 2026
@redcatbear redcatbear added the enhancement New feature or request label Aug 16, 2026
@sonarqubecloud

Copy link
Copy Markdown

@redcatbear

Copy link
Copy Markdown
Contributor Author

@sophokles73, Could you please do a review?

Comment on lines 213 to +231
@@ -211,7 +228,7 @@ private void processForwardingBlock(final String skippedType, final StructuralNo
this.listener.beginSpecificationItem();
this.listener.setId(specItemId);
this.listener.setLocation(location);
this.listener.addCoveredId(coveredSid);
this.listener.addCoveredId(coveredLocatedSpecificaitonItemId);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
final LocatedSpecificationItemId coveredLocatedSpecificationItemId =
createLocatedSpecificationItemId(coveredSpecItems.get(0), block);
final SpecificationItemId coveredSpecificationItemId = coveredLocatedSpecificaitonItemId.getId();
final LocatedSpecificationItemId specItemId = LocatedSpecificationItemId.builder()
.id(new SpecificationItemId.Builder()
.artifactType(skippedType)
.name(coveredSpecificationItemId.getName())
.revision(coveredSpecificationItemId.getRevision())
.build())
.range(coveredLocatedSpecificationItemId.getRange())
.build();
final Location location = getLocation(block);
LOG.fine(() -> "adding forwarding specification item [ID: %s, location: %s]".formatted(specItemId,
@@ -211,7 +228,7 @@
this.listener.beginSpecificationItem();
this.listener.setId(specItemId);
this.listener.setLocation(location);
this.listener.addCoveredId(coveredLocatedSpecificationItemId);

Comment thread pom.xml
Comment on lines 20 to 21
<!-- Upgrading to 3.0.1 causes test failures, see https://github.com/itsallcode/openfasttrace-asciidoc-plugin/issues/19 -->
<asciidoctor.version>3.0.0</asciidoctor.version>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FMPOV this should be addressed as part of releasing 1.0.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree 100%. I took a shot at it two weeks back. Seems to be a bigger refactoring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AsciiDoc Plugin does not compile against OFT 4.5.0.

2 participants