Skip to content

[RHIDP#12779]: CQA tooling optimization and content modularization#1947

Merged
themr0c merged 23 commits into
redhat-developer:mainfrom
themr0c:RHIDP-12779-cqa-tooling-optimization
Mar 20, 2026
Merged

[RHIDP#12779]: CQA tooling optimization and content modularization#1947
themr0c merged 23 commits into
redhat-developer:mainfrom
themr0c:RHIDP-12779-cqa-tooling-optimization

Conversation

@themr0c

@themr0c themr0c commented Mar 19, 2026

Copy link
Copy Markdown
Member

Important

Do Not Merge
This PR contains CQA tooling improvements and documentation structure changes. Review each commit individually.

Version(s): All

Issue: RHIDP-12779

Preview: N/A (script changes only, no content changes to preview)

Summary

Comprehensive CQA tooling optimization and content modularization:

CQA Script Improvements

  • CQA-05: Add subheading validation for concept/reference/procedure modules per modular docs templates; add topic ID autofix (was incorrectly delegating to CQA-02)
  • CQA-03: Fix false positive for single-step procedures when includes may contain additional steps
  • CQA-14: Fix false positive for images by adding :imagesdir: fallback to artifacts/attributes.adoc
  • CQA-01: Clean up output messages (remove erroneous "see output above"); add default case to case statement
  • CQA-00: Define constants for repeated literals; assign positional params to local variables
  • SonarCloud fixes: Add explicit return statements, merge nested ifs, define constants for repeated literals across all 14 CQA scripts and cqa-lib.sh

Content Structure

  • Inline unique assemblies into master.adoc for two titles (extend plugins, MCP tools)
  • Extract supplementary content from master.adoc files into concept modules (install methods, adoption insights, audit logs)
  • Move abstract text to :abstract: attribute and use {abstract} reference
  • Fix 11 broken cross-assembly xrefs (hardcode resolved context for cross-assembly references)

CI/CD

  • Update shellcheck.yml to always update existing PR comments (not just when files changed)
  • Add project CLAUDE.md with CQA compliance directive and PR template guidance
  • Add assembly template resource file

Checklist

  • Shellcheck passes on all modified scripts
  • CQA scripts produce correct output (sanity tested)
  • ccutil build passes for all 33 titles with zero errors
  • htmltest passes
  • SonarCloud static analysis findings addressed

themr0c and others added 3 commits March 19, 2026 17:31
- Rewrite CQA scripts (01, 02, 03) for correctness and brevity
- Fix empty-line bug in list-all-included-files-starting-from.sh
- Create condensed CQA extracts for SSG, peer review, and content types
- Convert peer review resource from HTML to Markdown
- Remove redundant resources (cqa-common-issues, vale-acceptable-warnings)
- Clean stale permissions in .claude/settings.json
- Update skill files to match rewritten scripts
- Fix cqa-04 template ordering (content type first) and procedure title form

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add 11 auto-fixes: content type, context save/restore, prerequisites
  heading, additional resources, ID suffix, context line positioning
- Enforce assembly template structure: content type line 1, context save
  line 2, context restore as last two lines
- Add checks: intro length, prerequisites count, prerequisites format,
  ID suffix, additional resources role attribute
- Script now resolves 99% of violations across all 33 titles (497 → 6)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add auto-fix support for DITA Vale issues (AuthorLine, CalloutList,
BlockTitle, TaskContents, TaskStep) and apply fixes across all titles.
Standardize all 16 CQA skill files to follow a consistent 6-step
workflow: report, auto-fix, verify, manual fix, re-verify, report.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rhdh-bot

Copy link
Copy Markdown
Collaborator

🐚 Shellcheck Analysis Results

Changed shell scripts in this PR: 4

Scripts analyzed:

  • build/scripts/cqa-01-asciidoctor-dita-vale.sh
  • build/scripts/cqa-02-assembly-structure.sh
  • build/scripts/cqa-03-content-is-modularized.sh
  • build/scripts/list-all-included-files-starting-from.sh

💡 Check the Files changed tab for detailed shellcheck suggestions.

All findings are reported as warnings and won't block the PR.


Automated shellcheck analysis • See shellcheck.net for details

@rhdh-bot

Copy link
Copy Markdown
Collaborator

📋 Content Quality Assessment Results

Changed .adoc files in this PR: 14

🗑️ Orphaned Modules Check

✅ No orphaned files found

📝 Content Type Validation

💡 Code suggestions posted for content type fixes
Click "View changes" in the Files tab to see and apply suggestions

🏷️ Title/ID/Filename Alignment

✅ All changed files have aligned title/ID/filename


Automated CQA check • See CQA.md for manual verification steps

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rhdh-bot

Copy link
Copy Markdown
Collaborator

🐚 Shellcheck Analysis Results

Changed shell scripts in this PR: 4

Scripts analyzed:

  • build/scripts/cqa-01-asciidoctor-dita-vale.sh
  • build/scripts/cqa-02-assembly-structure.sh
  • build/scripts/cqa-03-content-is-modularized.sh
  • build/scripts/list-all-included-files-starting-from.sh

💡 Check the Files changed tab for detailed shellcheck suggestions.

All findings are reported as warnings and won't block the PR.


Automated shellcheck analysis • See shellcheck.net for details

@rhdh-bot

rhdh-bot commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rhdh-bot

Copy link
Copy Markdown
Collaborator

🐚 Shellcheck Analysis Results

Changed shell scripts in this PR: 4

Scripts analyzed:

  • build/scripts/cqa-01-asciidoctor-dita-vale.sh
  • build/scripts/cqa-02-assembly-structure.sh
  • build/scripts/cqa-03-content-is-modularized.sh
  • build/scripts/list-all-included-files-starting-from.sh

💡 Check the Files changed tab for detailed shellcheck suggestions.

All findings are reported as warnings and won't block the PR.


Automated shellcheck analysis • See shellcheck.net for details

@rhdh-bot

Copy link
Copy Markdown
Collaborator

📋 Content Quality Assessment Results

Changed .adoc files in this PR: 15

🗑️ Orphaned Modules Check

✅ No orphaned files found

📝 Content Type Validation

💡 Code suggestions posted for content type fixes
Click "View changes" in the Files tab to see and apply suggestions

🏷️ Title/ID/Filename Alignment

✅ All changed files have aligned title/ID/filename


Automated CQA check • See CQA.md for manual verification steps

….md)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rhdh-bot

Copy link
Copy Markdown
Collaborator

🐚 Shellcheck Analysis Results

Changed shell scripts in this PR: 4

Scripts analyzed:

  • build/scripts/cqa-01-asciidoctor-dita-vale.sh
  • build/scripts/cqa-02-assembly-structure.sh
  • build/scripts/cqa-03-content-is-modularized.sh
  • build/scripts/list-all-included-files-starting-from.sh

💡 Check the Files changed tab for detailed shellcheck suggestions.

All findings are reported as warnings and won't block the PR.


Automated shellcheck analysis • See shellcheck.net for details

@rhdh-bot

rhdh-bot commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

TaskStep autofix now distinguishes two cases:
- After .Procedure before first step: remove erroneous blank line
- After a list: attach to preceding step with + continuation

Also fixes two .adoc files with erroneous + after .Procedure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rhdh-bot

Copy link
Copy Markdown
Collaborator

📋 Content Quality Assessment Results

Changed .adoc files in this PR: 122

🗑️ Orphaned Modules Check

✅ No orphaned files found

📝 Content Type Validation

💡 Code suggestions posted for content type fixes
Click "View changes" in the Files tab to see and apply suggestions

🏷️ Title/ID/Filename Alignment

✅ All changed files have aligned title/ID/filename


Automated CQA check • See CQA.md for manual verification steps

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rhdh-bot

Copy link
Copy Markdown
Collaborator

🐚 Shellcheck Analysis Results

Changed shell scripts in this PR: 25

Scripts analyzed:

  • build/scripts/align-title-directories.sh
  • build/scripts/cqa-00-directory-structure.sh
  • build/scripts/cqa-00-orphaned-modules.sh
  • build/scripts/cqa-01-asciidoctor-dita-vale.sh
  • build/scripts/cqa-02-assembly-structure.sh
  • build/scripts/cqa-03-content-is-modularized.sh
  • build/scripts/cqa-04-modules-use-official-templates.sh
  • build/scripts/cqa-05-modular-elements-checklist.sh
  • build/scripts/cqa-06-assemblies-use-the-official-template-assemblies-ar.sh
  • build/scripts/cqa-07-toc-max-3-levels.sh
  • build/scripts/cqa-08-short-description-content.sh
  • build/scripts/cqa-09-short-description-format.sh
  • build/scripts/cqa-10-titles-are-brief-complete-and-descriptive.sh
  • build/scripts/cqa-11-procedures-prerequisites.sh
  • build/scripts/cqa-12-content-is-grammatically-correct-and-follows-rules.sh
  • build/scripts/cqa-13-information-is-conveyed-using-the-correct-content.sh
  • build/scripts/cqa-14-no-broken-links.sh
  • build/scripts/cqa-15-redirects-if-needed-are-in-place-and-work-correc.sh
  • build/scripts/cqa-15-redirects.sh
  • build/scripts/cqa-16-official-product-names-are-used.sh
  • build/scripts/cqa-17-includes-appropriate-legal-approved-disclaimers-f.sh
  • build/scripts/cqa-lib.sh
  • build/scripts/cqa.sh
  • build/scripts/fix-orphaned-modules.sh
  • build/scripts/list-all-included-files-starting-from.sh

💡 Check the Files changed tab for detailed shellcheck suggestions.

All findings are reported as warnings and won't block the PR.


Automated shellcheck analysis • See shellcheck.net for details

@themr0c themr0c marked this pull request as ready for review March 20, 2026 10:09
@rhdh-bot

Copy link
Copy Markdown
Collaborator

📋 Content Quality Assessment Results

Changed .adoc files in this PR: 123

🗑️ Orphaned Modules Check

✅ No orphaned files found

📝 Content Type Validation

💡 Code suggestions posted for content type fixes
Click "View changes" in the Files tab to see and apply suggestions

🏷️ Title/ID/Filename Alignment

✅ All changed files have aligned title/ID/filename


Automated CQA check • See CQA.md for manual verification steps

@themr0c themr0c changed the title [RHIDP#12779]: CQA tooling optimization - auto-fix scripts and standardized workflows [RHIDP#12779]: CQA tooling optimization and content modularization Mar 20, 2026
@rhdh-bot

Copy link
Copy Markdown
Collaborator

🐚 Shellcheck Analysis Results

Changed shell scripts in this PR: 25

Scripts analyzed:

  • build/scripts/align-title-directories.sh
  • build/scripts/cqa-00-directory-structure.sh
  • build/scripts/cqa-00-orphaned-modules.sh
  • build/scripts/cqa-01-asciidoctor-dita-vale.sh
  • build/scripts/cqa-02-assembly-structure.sh
  • build/scripts/cqa-03-content-is-modularized.sh
  • build/scripts/cqa-04-modules-use-official-templates.sh
  • build/scripts/cqa-05-modular-elements-checklist.sh
  • build/scripts/cqa-06-assemblies-use-the-official-template-assemblies-ar.sh
  • build/scripts/cqa-07-toc-max-3-levels.sh
  • build/scripts/cqa-08-short-description-content.sh
  • build/scripts/cqa-09-short-description-format.sh
  • build/scripts/cqa-10-titles-are-brief-complete-and-descriptive.sh
  • build/scripts/cqa-11-procedures-prerequisites.sh
  • build/scripts/cqa-12-content-is-grammatically-correct-and-follows-rules.sh
  • build/scripts/cqa-13-information-is-conveyed-using-the-correct-content.sh
  • build/scripts/cqa-14-no-broken-links.sh
  • build/scripts/cqa-15-redirects-if-needed-are-in-place-and-work-correc.sh
  • build/scripts/cqa-15-redirects.sh
  • build/scripts/cqa-16-official-product-names-are-used.sh
  • build/scripts/cqa-17-includes-appropriate-legal-approved-disclaimers-f.sh
  • build/scripts/cqa-lib.sh
  • build/scripts/cqa.sh
  • build/scripts/fix-orphaned-modules.sh
  • build/scripts/list-all-included-files-starting-from.sh

💡 Check the Files changed tab for detailed shellcheck suggestions.

All findings are reported as warnings and won't block the PR.


Automated shellcheck analysis • See shellcheck.net for details

@rhdh-bot

Copy link
Copy Markdown
Collaborator

📋 Content Quality Assessment Results

Changed .adoc files in this PR: 123

🗑️ Orphaned Modules Check

✅ No orphaned files found

📝 Content Type Validation

💡 Code suggestions posted for content type fixes
Click "View changes" in the Files tab to see and apply suggestions

🏷️ Title/ID/Filename Alignment

✅ All changed files have aligned title/ID/filename


Automated CQA check • See CQA.md for manual verification steps

- Fix 11 broken cross-references caused by cross-assembly context
  mismatches (ccutil build now passes for all 33 titles)
- Update shellcheck workflow to always update existing PR comment
- Add PR template and post-push rules to CLAUDE.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rhdh-bot

Copy link
Copy Markdown
Collaborator

🐚 Shellcheck Analysis Results

Changed shell scripts in this PR: 25

Scripts analyzed:

  • build/scripts/align-title-directories.sh
  • build/scripts/cqa-00-directory-structure.sh
  • build/scripts/cqa-00-orphaned-modules.sh
  • build/scripts/cqa-01-asciidoctor-dita-vale.sh
  • build/scripts/cqa-02-assembly-structure.sh
  • build/scripts/cqa-03-content-is-modularized.sh
  • build/scripts/cqa-04-modules-use-official-templates.sh
  • build/scripts/cqa-05-modular-elements-checklist.sh
  • build/scripts/cqa-06-assemblies-use-the-official-template-assemblies-ar.sh
  • build/scripts/cqa-07-toc-max-3-levels.sh
  • build/scripts/cqa-08-short-description-content.sh
  • build/scripts/cqa-09-short-description-format.sh
  • build/scripts/cqa-10-titles-are-brief-complete-and-descriptive.sh
  • build/scripts/cqa-11-procedures-prerequisites.sh
  • build/scripts/cqa-12-content-is-grammatically-correct-and-follows-rules.sh
  • build/scripts/cqa-13-information-is-conveyed-using-the-correct-content.sh
  • build/scripts/cqa-14-no-broken-links.sh
  • build/scripts/cqa-15-redirects-if-needed-are-in-place-and-work-correc.sh
  • build/scripts/cqa-15-redirects.sh
  • build/scripts/cqa-16-official-product-names-are-used.sh
  • build/scripts/cqa-17-includes-appropriate-legal-approved-disclaimers-f.sh
  • build/scripts/cqa-lib.sh
  • build/scripts/cqa.sh
  • build/scripts/fix-orphaned-modules.sh
  • build/scripts/list-all-included-files-starting-from.sh

💡 Check the Files changed tab for detailed shellcheck suggestions.

All findings are reported as warnings and won't block the PR.


Automated shellcheck analysis • See shellcheck.net for details

@rhdh-bot

rhdh-bot commented Mar 20, 2026

Copy link
Copy Markdown
Collaborator

Address all SonarCloud code analysis warnings:
- Add explicit return statements at end of functions across all CQA scripts
- Assign positional parameters to local variables (cqa-00, cqa-02, cqa-03)
- Merge nested if statements (cqa-01, cqa-17)
- Define constants for repeated string literals (cqa-lib checklist,
  cqa-00 shared, cqa-03 include pattern)
- Add default case to case statement (cqa-01)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rhdh-bot

Copy link
Copy Markdown
Collaborator

🐚 Shellcheck Analysis Results

Changed shell scripts in this PR: 25

Scripts analyzed:

  • build/scripts/align-title-directories.sh
  • build/scripts/cqa-00-directory-structure.sh
  • build/scripts/cqa-00-orphaned-modules.sh
  • build/scripts/cqa-01-asciidoctor-dita-vale.sh
  • build/scripts/cqa-02-assembly-structure.sh
  • build/scripts/cqa-03-content-is-modularized.sh
  • build/scripts/cqa-04-modules-use-official-templates.sh
  • build/scripts/cqa-05-modular-elements-checklist.sh
  • build/scripts/cqa-06-assemblies-use-the-official-template-assemblies-ar.sh
  • build/scripts/cqa-07-toc-max-3-levels.sh
  • build/scripts/cqa-08-short-description-content.sh
  • build/scripts/cqa-09-short-description-format.sh
  • build/scripts/cqa-10-titles-are-brief-complete-and-descriptive.sh
  • build/scripts/cqa-11-procedures-prerequisites.sh
  • build/scripts/cqa-12-content-is-grammatically-correct-and-follows-rules.sh
  • build/scripts/cqa-13-information-is-conveyed-using-the-correct-content.sh
  • build/scripts/cqa-14-no-broken-links.sh
  • build/scripts/cqa-15-redirects-if-needed-are-in-place-and-work-correc.sh
  • build/scripts/cqa-15-redirects.sh
  • build/scripts/cqa-16-official-product-names-are-used.sh
  • build/scripts/cqa-17-includes-appropriate-legal-approved-disclaimers-f.sh
  • build/scripts/cqa-lib.sh
  • build/scripts/cqa.sh
  • build/scripts/fix-orphaned-modules.sh
  • build/scripts/list-all-included-files-starting-from.sh

💡 Check the Files changed tab for detailed shellcheck suggestions.

All findings are reported as warnings and won't block the PR.


Automated shellcheck analysis • See shellcheck.net for details

@sonarqubecloud

Copy link
Copy Markdown

@rhdh-bot

rhdh-bot commented Mar 20, 2026

Copy link
Copy Markdown
Collaborator

@themr0c themr0c merged commit 3b1940b into redhat-developer:main Mar 20, 2026
11 of 12 checks passed
@themr0c themr0c deleted the RHIDP-12779-cqa-tooling-optimization branch March 20, 2026 10:54
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