Skip to content

Add getListNumberingWithoutDefault method to AttributeHelper - #744

Open
LonelyMidoriya wants to merge 1 commit into
integrationfrom
list-numbering
Open

LonelyMidoriya wants to merge 1 commit into
integrationfrom
list-numbering

Conversation

@LonelyMidoriya

@LonelyMidoriya LonelyMidoriya commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features
    • List numbering information can now distinguish between an explicitly set “None” value and an attribute with no value, improving how unspecified list numbering is represented. This may help downstream tools handle documents with inherited list attributes more accurately.

@LonelyMidoriya LonelyMidoriya self-assigned this Dec 4, 2026
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

AttributeHelper adds getListNumberingWithoutDefault. The method reads the inheritable ListNumbering attribute and returns null when no value is found.

Changes: List numbering accessor

Layer / File(s) Summary
List numbering fallback accessor
src/main/java/org/verapdf/tools/AttributeHelper.java
Adds getListNumberingWithoutDefault, which reads the inheritable ListNumbering attribute with null as its fallback.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Feature

Merge Risk: Minimal · up to 7fd2e

This adds a small accessor that returns null instead of the default list numbering when no value is found. Existing behavior is unchanged, and no merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the single change in the changeset: a new public method, getListNumberingWithoutDefault, added to AttributeHelper. The raw summary confirms this is the only declaration added, and it r…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the single change in the changeset: a new public method, getListNumberingWithoutDefault, added to AttributeHelper. The raw summary confirms this is the only declaration added, and it returns null instead of the None default. The title is specific and matches the main change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7ea7e95e-e768-4fad-89d4-75547385df53
Commits

Reviewing files that changed from the base of the PR and between 8a078cf and 7fd2e20.

Files selected for processing: 1

  • src/main/java/org/verapdf/tools/AttributeHelper.java

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

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.

1 participant