Skip to content

Add Agent Playbook section for automated updates - #134

Merged
stefanvacareanu7 merged 1 commit into
masterfrom
docs/agent-update-playbook
Jul 29, 2026
Merged

Add Agent Playbook section for automated updates#134
stefanvacareanu7 merged 1 commit into
masterfrom
docs/agent-update-playbook

Conversation

@stefanvacareanu7

Copy link
Copy Markdown
Contributor

Summary

  • Adds a "Agent Playbook: Updating This Repository End-to-End" section to README.md, documenting how an AI agent (or human) should perform a PMD version bump or related update in this repo, based on the actual DocGenerator/build.sbt/CircleCI setup and prior bump-commit history (including the PMD 7 bump-and-revert).
  • Documentation only — no other files touched.

Test plan

  • N/A (README.md documentation change only).

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@codacy-production codacy-production 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.

Pull Request Overview

This PR successfully introduces an 'Agent Playbook' section to the README.md, providing clear, standardized guidance for both human and AI contributors. The documentation addresses all acceptance criteria, including file versioning, PMD update procedures, and local testing instructions.

Two minor typographical errors were identified in directory paths for the RuleSets.scala file. These do not prevent merging but should be corrected for clarity and consistency with the actual project structure.

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

Comment thread README.md
```bash
sbt "runMain com.codacy.pmd.DocGenerator"
```
This rewrites `docs/patterns.json`, `docs/description/description.json`, `docs/description/*.md`, and `src/main/scala/com.codacy/pmd/RuleSets.scala`. Review the diff for new/removed/renamed rules and stale fixtures under `docs/tests/`/`docs/multiple-tests/`. Watch the console output for `Ruleset ... is missing from rulesets.properties` warnings.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚪ LOW RISK

Nitpick: Consistent with the previous mention, the directory path for RuleSets.scala should use a slash instead of a dot: 'src/main/scala/com/codacy/pmd/RuleSets.scala'.

Comment thread README.md
- `docs/tests/*` and `docs/multiple-tests/*` — fixtures used by `codacy-plugins-test` to validate the engine against real code samples.
- `docs/tool-description.md` — short blurb about the tool, hand-maintained.

All the generated artifacts above come from **`DocGenerator`** (`src/main/scala/com/codacy/pmd/DocGenerator.scala`, run via `sbt "runMain com.codacy.pmd.DocGenerator"`). Unlike some sibling Codacy engines, it does **not** clone an external GitHub repo — it reads the ruleset XML files bundled as classpath resources inside the `pmd-*` jars that were just resolved for the new `toolVersionKey`, via `ResourceHelper`/`Languages`/`RuleSets`. It also regenerates `src/main/scala/com.codacy/pmd/RuleSets.scala` (marked `AUTOGENERATED: DO NOT CHANGE HERE`). This means an sbt dependency resolution (network access to Maven Central) is enough — no separate git clone or pandoc is needed here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚪ LOW RISK

Nitpick: The path 'src/main/scala/com.codacy/pmd/RuleSets.scala' appears to have a typo; it should be 'src/main/scala/com/codacy/pmd/RuleSets.scala' to match standard directory structures and the path used for DocGenerator.

@stefanvacareanu7
stefanvacareanu7 merged commit e3ae5d5 into master Jul 29, 2026
4 checks passed
@stefanvacareanu7
stefanvacareanu7 deleted the docs/agent-update-playbook branch July 29, 2026 09:57
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