Skip to content

chore(docs): reconcile the inventory with what git archive actually produces - #11

Merged
mambax7 merged 1 commit into
XoopsModules27x:mainfrom
mambax7:main
Aug 5, 2026
Merged

mambax7 merged 1 commit into
XoopsModules27x:mainfrom
mambax7:main

Conversation

@mambax7

@mambax7 mambax7 commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Module root has always held nine files; the summary said seven and the tree
listing omitted LICENSE and composer.json entirely, so the total was short by
two from the day those files were added. Counted against the real archive:
129, matching every other row.

.gitattributes is rewritten with LF endings. Cosmetic -- git parses it either
way, and export-ignore has been applying correctly all along.

Summary by Sourcery

Update documentation inventory to match the actual module archive contents and normalize .gitattributes formatting.

Documentation:

  • Correct the documented module root file count and total file count to include LICENSE and composer.json and align with the real archive layout.

Chores:

  • Normalize line endings in .gitattributes without changing its semantics.

Summary by CodeRabbit

  • Documentation

    • Updated the DebugBar 1.4.0 file inventory to include all module-root files.
    • Corrected the documented release totals for improved accuracy.
  • Chores

    • Clarified line-ending normalization guidance.
    • Improved archive handling by consistently excluding documentation archive files.

…roduces

Module root has always held nine files; the summary said seven and the tree
listing omitted LICENSE and composer.json entirely, so the total was short by
two from the day those files were added. Counted against the real archive:
129, matching every other row.

.gitattributes is rewritten with LF endings. Cosmetic -- git parses it either
way, and export-ignore has been applying correctly all along.
Copilot AI lite review requested due to automatic review settings August 5, 2026 05:56
@sourcery-ai

sourcery-ai Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the documentation inventory to accurately reflect the contents of the module release archive and normalizes .gitattributes line endings without changing its semantics.

Sequence diagram for git archive export-ignore and docs reconciliation

sequenceDiagram
    actor Developer
    participant Git
    participant gitattributes
    participant Release_archive
    participant Docs_file_list_md

    Developer->>Git: git archive
    Git->>gitattributes: export-ignore rules
    Git->>Release_archive: create release tree
    Developer->>Release_archive: inspect contents
    Developer->>Docs_file_list_md: update file counts and listing
Loading

Flow diagram for reconciling docs with the release archive

flowchart TD
    A[Repository tree] --> B[git archive]
    B --> C[Release archive]
    C --> D[Compare with docs/file-list.md]
    D --> E[Adjust module root count 7 -> 9]
    D --> F[Adjust total count 127 -> 129]
    D --> G[Add LICENSE and composer.json to tree listing]
    A --> H[.gitattributes]
    H --> I[Normalize line endings LF]
Loading

File-Level Changes

Change Details Files
Corrected documented file counts and total to match the actual module root contents, including LICENSE and composer.json.
  • Updated the module root file count from 7 to 9 in the file inventory table.
  • Expanded the module root description to explicitly mention the licence and Composer manifest.
  • Adjusted the documented total file count from 127 to 129 to stay consistent with the actual archive contents.
  • Added LICENSE and composer.json entries to the documented module-owned source tree listing.
docs/file-list.md
Normalized .gitattributes line endings to LF for consistency without altering export-ignore behavior.
  • Rewrote .gitattributes with LF endings only, preserving all patterns and semantics.
  • Verified that export-ignore rules remain unchanged and still align with the documented file inventory.
.gitattributes

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@mambax7
mambax7 merged commit 675b562 into XoopsModules27x:main Aug 5, 2026
7 of 9 checks passed
@coderabbitai

coderabbitai Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 470da2a6-f5e1-4ece-a94b-7b93efeece05

📥 Commits

Reviewing files that changed from the base of the PR and between 6e17b66 and d89d6b1.

📒 Files selected for processing (2)
  • .gitattributes
  • docs/file-list.md

📝 Walkthrough

Walkthrough

The change updates release archive exclusions in .gitattributes and synchronizes the DebugBar 1.4.0 file inventory with the module contents.

Changes

Release packaging

Layer / File(s) Summary
Archive exclusion rules
.gitattributes
Adds LF storage documentation, excludes docs/00 and its contents from release archives, and moves the .gitattributes exclusion into the shared list.
Release inventory documentation
docs/file-list.md
Updates the module-root and total release counts and adds LICENSE and composer.json to the source-tree listing.

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

Suggested reviewers: copilot

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="docs/file-list.md" line_range="9" />
<code_context>
 | Area | Files | Purpose |
 |---|---:|---|
-| Module root | 7 | Manifest, entry points, README, and changelog |
+| Module root | 9 | Manifest, entry points, README, changelog, licence, and the Composer manifest |
 | Administration | 8 | Home, Analytics, Logs, Diagnostics, navigation, and wrappers |
 | PHP classes | 27 | Collection, profiling, storage, diagnostics, event/template collectors, and optional Ray bridge |
</code_context>
<issue_to_address>
**nitpick (typo):** Consider aligning the spelling of "licence" with the actual `LICENSE` filename for consistency.

Here you list "licence" while the file is actually named `LICENSE`. Please either use "license" or reference `LICENSE` directly so the wording matches the filename and avoids confusion.

```suggestion
| Module root | 9 | Manifest, entry points, README, changelog, `LICENSE`, and the Composer manifest |
```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread docs/file-list.md
| Area | Files | Purpose |
|---|---:|---|
| Module root | 7 | Manifest, entry points, README, and changelog |
| Module root | 9 | Manifest, entry points, README, changelog, licence, and the Composer manifest |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nitpick (typo): Consider aligning the spelling of "licence" with the actual LICENSE filename for consistency.

Here you list "licence" while the file is actually named LICENSE. Please either use "license" or reference LICENSE directly so the wording matches the filename and avoids confusion.

Suggested change
| Module root | 9 | Manifest, entry points, README, changelog, licence, and the Composer manifest |
| Module root | 9 | Manifest, entry points, README, changelog, `LICENSE`, and the Composer manifest |

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the documented release-tree inventory for modules/debugbar so it matches what git archive actually exports, and normalizes .gitattributes formatting while keeping its export behavior consistent.

Changes:

  • Fix the documented module root count and overall total to include LICENSE and composer.json (127 → 129).
  • Update the documented tree listing to include LICENSE and composer.json.
  • Normalize .gitattributes formatting (LF note/blank line cleanup) and adjust export-ignore entries.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/file-list.md Reconciles documented file counts and root listing with the actual archive contents.
.gitattributes Normalizes formatting and updates export-ignore rules used by git archive.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/file-list.md
| Area | Files | Purpose |
|---|---:|---|
| Module root | 7 | Manifest, entry points, README, and changelog |
| Module root | 9 | Manifest, entry points, README, changelog, licence, and the Composer manifest |
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.

2 participants