Skip to content

feat(code-tidying): pass an ADR pointer comment in the comment lint #18189

Description

@kyle-sexton

Problem

remove-comments keeps an ADR pointer under the necessary posture (plugins/code-tidying/skills/remove-comments/reference/keep-list.md), and /architecture:adr offers to write one, but the comment lint has no pass for it. Under comment_lint: block a pointer the user accepted fails CI Status.

Change, including the loosening it makes

This loosens the comment lint on purpose. Today a one-line comment holding only ADR-0042, See ADR 42 or See docs/adr/0042 fails under necessary unless a comment_lint_allow pattern matches. After the change it passes when:

  • the comment is the only text in its comment run and holds just an ADR id or one relative path to the record, optionally after See;
  • the record exists in the repository's ADR folder, the new team-file setting comment_adr_dir (default docs/adr, a folder inside the repository);
  • existence is judged on the same snapshot the lint reads the source from (the index when staged, the work tree with --worktree, the pushed tips on pre-push).

A pointer to a missing record, a pointer carrying reason text, or a pointer inside a longer comment still fails. No other posture changes.

Owner decision: https://github.com/melodic-software/architecture/blob/d9855165aa039340fc3c98e69284e9b7127ccc7d/docs/owner-decisions.md#L326, verbatim: "I think an ADR ID is fine. We essentially just want to link and reference certain things."

Done when

  • plugins/code-tidying/git-hooks/comment-lint.py passes the pointer shape above and fails the three shapes that stay blocked, with tests.
  • comment_adr_dir is read through the comment settings cascade and documented with its default.

Delivered by #18185, which is open; no other pull request is needed.

Activity

  1. added
    attended
    on Nov 22, 2026
  2. added
    needs-triage
    on Nov 22, 2026
  3. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: the code-tidying comment lint script, its tests and settings docs; anyone running the lint under comment_lint: block or on CI.
    Reversible: yes; revert the change and the lint returns to failing ADR pointers under necessary.
    Open questions: none
    I understood this as a request to let the comment lint pass a lone ADR-pointer comment when the record exists in comment_adr_dir (default docs/adr), judged on the same snapshot the lint reads. Pointers to missing records, pointers with reason text, and pointers inside longer comments stay blocked. The issue states the design and done-when, and names an owner decision. It says #18185 already delivers this and is open. No duplicate or merged fix found.

    Automated triage. A maintainer reviews it.

  4. removed
    needs-triage
    on Nov 22, 2026
  5. melodic-automation-lanes commented on Nov 22, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: it carries attended. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  6. added
    session-owned
    and removed
    attended
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    session-owned

    Fields

    Work status

    confirmed

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions