Skip to content

docs: correct stale facts in CLAUDE.md - #1857

Merged
lukaszlenart merged 1 commit into
mainfrom
docs/refresh-claude-md-stale-facts
Aug 23, 2026
Merged

docs: correct stale facts in CLAUDE.md#1857
lukaszlenart merged 1 commit into
mainfrom
docs/refresh-claude-md-stale-facts

Conversation

@lukaszlenart

Copy link
Copy Markdown
Member

Found while auditing my local project memory for drift; the same three facts had drifted in CLAUDE.md.

Testing section said JUnit 5 (the one that actually bites)

There is no JUnit 5 in this repository:

check result
org.junit.jupiter imports 0
import org.junit.Test (JUnit 4) ~210 files
extends XWorkTestCase (JUnit 3 style) ~114 files
parent/pom.xml junit:junit:4.13.2

This is not cosmetic. XWorkTestCase extends junit.framework.TestCase, so a Jupiter @Test
added to one of its ~114 subclasses is silently never collected — it does not error, the
suite just stays green while the new test never runs. Guidance that says "tests use JUnit 5"
leads straight into that.

The section now states the two coexisting styles, the testXxx() naming requirement, and that
introducing Jupiter is a build-infrastructure change deserving its own WW- ticket.

Version was pinned to 7.2.0-SNAPSHOT

The pom is on 7.4.0-SNAPSHOT. Rather than swap one hardcoded number for another that will
drift again, the file now points at the pom and notes that -SNAPSHOT is a placeholder — the
release version is picked at release time from the semver impact of the accumulated changes.

PR title rule was absolute

It said a Jira ticket ID is required, full stop. Doc/build/CI changes take no ticket and use
conventional-commit form — as recent history does consistently (docs:, build(ci):, chore:).
This PR is itself an example.

Also mentions .claude/skills/ alongside .claude/agents/ and .claude/commands/.

No ticket: documentation-only change.

Three claims had drifted away from the repo:

- Testing said "JUnit 5 with AssertJ and Mockito". There is no JUnit 5 in this
  repository at all — parent/pom.xml declares junit:junit:4.13.2 and there are
  zero org.junit.jupiter imports. ~114 classes extend XWorkTestCase (JUnit 3
  style, testXxx() naming) and ~210 use org.junit.Test. This mattered: a Jupiter
  @test added to an XWorkTestCase subclass is silently never collected, so the
  wrong guidance produced tests that look green because they never ran.
- Project Overview pinned "Current version: 7.2.0-SNAPSHOT" while the pom is on
  7.4.0-SNAPSHOT. Replaced the hardcoded number with a pointer to the pom plus a
  note that the -SNAPSHOT value is a placeholder, not the next release number.
- Pull Requests said a Jira ticket ID is required, full stop. Doc, build and CI
  changes take no ticket and use conventional-commit form; recent history is
  consistently docs:/build(ci):/chore:.

Also mentions .claude/skills/ alongside agents and commands.

🤖 Generated by AI Assistant
@sonarqubecloud

Copy link
Copy Markdown

@lukaszlenart
lukaszlenart merged commit 4e84c9a into main Aug 23, 2026
13 checks passed
@lukaszlenart
lukaszlenart deleted the docs/refresh-claude-md-stale-facts branch August 23, 2026 07:52
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