[RHIDP-12787]: Add local SonarCloud lint script and fix remaining CQA errors#1950
Conversation
|
Updated preview: https://redhat-developer.github.io/red-hat-developers-documentation-rhdh/pr-1950/ @ 03/20/26 11:50:35 |
|
Updated preview: https://redhat-developer.github.io/red-hat-developers-documentation-rhdh/pr-1950/ @ 03/20/26 12:00:09 |
Content Quality Assessment Results./build/scripts/cqa.sh --fix --all Run ./build/scripts/cqa.sh --all, then for each failing CQA check, read the matching .claude/skills/cqa-*.md skill file and fix the [MANUAL] issues following the skill instructions. Automated CQA check run on the entire repository |
- Fix CQA workflow PR comment: remove code fence wrapping so embedded
markdown renders correctly instead of breaking on backticks
- Fix CQA-05 violations: remove 30 non-standard block titles and fix
2 missing image alt texts across all titles
- Fix CQA-05 script: report all violations per file, not just the first
- Fix CQA-02 script: handle hybrid .Additional resources + [role] case
- Extract inline content from title assemblies into proper modules:
- authorization: RBAC intro content -> con-role-based-access-control-in-rhdh
- develop-plugins: == sections -> assembly-develop-a-new-plugin,
assembly-deployment-configurations
- MCP: == Troubleshoot -> assembly-troubleshoot-mcp-server-and-client-problems
- Inline single-use assembly in integrating-rhdh-with-github
- Fix .Additional resources format in install and audit-logs titles
- Update CQA-05 skill with fix patterns and assembly creation guidance
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CQA script improvements: - cqa-01: Fix file attribution by parsing Vale JSON per-file in report mode - cqa-06: Skip master.adoc for user story limits (title-level aggregation) - cqa-13: Detect assemblies without include:: directives - cqa-lib: Compact --all output (suppress passing files, single header) Content changes: - Convert assembly-techdocs-add-ons to ref-techdocs-add-ons reference module - Split assembly-customize-rhdh-appearance (16 includes) into: - assembly-customize-rhdh-theme-and-branding (9 includes) - assembly-customize-rhdh-navigation (7 includes) - Fix non-standard block titles in RBAC modules Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix CQA-03 false positive: skip content inside blocks (----, --, ....) when counting numbered/unnumbered list items in .Procedure sections - Fix callouts in proc-enable-users-to-use-the-topology-plugin.adoc - CQA-02 autofix: add context boilerplate to 71 assemblies, convert .Additional resources to [role="_additional-resources"] - CQA-03 autofix: normalize content type metadata and section lists - CQA-10 autofix: shorten titles, fix filename prefixes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…odule - CQA-15: Only fire on :title: changes in master.adoc or deleted titles (ignore internal module/assembly renames) - Add .Procedure section to proc-configure-frontend-plugin-wiring.adoc (fixes CQA-13 PROCEDURE without .Procedure violation) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1a9d456 to
8fafe52
Compare
Shellcheck Analysis ResultsChanged shell scripts in this PR: 25 Scripts analyzed:
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 |
Content Quality Assessment Results./build/scripts/cqa.sh --fix --all Run ./build/scripts/cqa.sh --all, then for each failing CQA check, read the matching .claude/skills/cqa-*.md skill file and fix the [MANUAL] issues following the skill instructions. Automated CQA check run on the entire repository |
…orm-cli-link - Shorten abstracts exceeding 300 chars in 11 modules and 4 master files - Restore :platform-cli-link: attributes in AKS/EKS/GKE install titles - CQA-05 block title fixes applied by --fix pass (ServiceNow, Keycloak, Helm chart examples, override config) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…_tsv - Create build/scripts/lint-scripts.sh running shellcheck on all CQA scripts - Add explicit return 0 to _vale_json_to_tsv() (sonarcloud finding) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Shellcheck Analysis ResultsChanged shell scripts in this PR: 26 Scripts analyzed:
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 |
Update xref context from customize-rhdh-appearance to customize-rhdh-navigation in proc-override-translations.adoc Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Content Quality Assessment Results./build/scripts/cqa.sh --fix --all Run ./build/scripts/cqa.sh --all, then for each failing CQA check, read the matching .claude/skills/cqa-*.md skill file and fix the [MANUAL] issues following the skill instructions. Automated CQA check run on the entire repository |
Shellcheck Analysis ResultsChanged shell scripts in this PR: 26 Scripts analyzed:
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 |
Content Quality Assessment Results./build/scripts/cqa.sh --fix --all Run ./build/scripts/cqa.sh --all, then for each failing CQA check, read the matching .claude/skills/cqa-*.md skill file and fix the [MANUAL] issues following the skill instructions. Automated CQA check run on the entire repository |
Fix hardcoded xref context: _install-plugins-in-rhdh -> _plugins-in-rhdh (module is included under assembly-plugins-in-rhdh with context plugins-in-rhdh) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
|
Updated preview: https://redhat-developer.github.io/red-hat-developers-documentation-rhdh/pr-1950/ @ 03/20/26 15:02:24 |
Content Quality Assessment Results./build/scripts/cqa.sh --fix --all Run ./build/scripts/cqa.sh --all, then for each failing CQA check, read the matching .claude/skills/cqa-*.md skill file and fix the [MANUAL] issues following the skill instructions. Automated CQA check run on the entire repository |
Co-authored-by: Priyanka Abel <pabel@redhat.com> Co-authored-by: GitHub Actions <github-actions@github.com> Co-authored-by: Lokananda Prabhu <102503482+lokanandaprabhu@users.noreply.github.com> Co-authored-by: Lindsay Hite <lhite@redhat.com> Co-authored-by: Judith Magak <124673476+jmagak@users.noreply.github.com> Co-authored-by: Jessica He <jessicahe4741@gmail.com> Co-authored-by: Kim Tsao <84398375+kim-tsao@users.noreply.github.com> Co-authored-by: Nick Boldt <nboldt@redhat.com> Co-authored-by: Fortune Ndlovu <ndlovufortune97@gmail.com> Co-authored-by: Frank Kong <50030060+Zaperex@users.noreply.github.com> Co-authored-by: Tomas Kral <tomas.kral@gmail.com> Co-authored-by: Gerry-Forde <63045020+Gerry-Forde@users.noreply.github.com> Co-authored-by: deerskindoll <jvrbkova@redhat.com> Co-authored-by: Fabrice Flore-Thébault <ffloreth@redhat.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: rhdh-bot service account <rhdh-bot@redhat.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> Co-authored-by: Jana Vrbkova <jvrbkova@redhat.com> Co-authored-by: Armel Soro <armel@rm3l.org> Co-authored-by: Joseph Kim <joskim@redhat.com> Co-authored-by: Kashish Mittal <113269381+04kash@users.noreply.github.com> Co-authored-by: Gaurav Trivedi <90042568+gtrivedi88@users.noreply.github.com> Co-authored-by: OpenShift Cherrypick Robot <openshift-cherrypick-robot@redhat.com> Co-authored-by: Omar Al Jaljuli <o.jaljuli@mail.utoronto.ca> Co-authored-by: Tim O'Keefe <tokeefe@redhat.com> Fix typo in service account information section (#1697) Fix build on release branches (#1703) fix-asciidoc-warnings (#1700) fix to unblock the builds (#1775) Fix broken link (#1788) Fixing some mistakes I made previously (#1787) fixed errors (#1826) fix arrays not merged by default (#1814) fix: remove session-leaking parameters from documentation URLs (#1845) fix build (#1858) Fix image statements (#1859) Fix image statements (#1861) FIX-1 - RHDH 1.9 GA release edits (#1867) Fixed scorecard broken link (#1873) Fix concept module title per CQA 2.1 requirement #8: fixes from IDs per CQA requirement #6 fixes from module IDs per CQA requirement #6. Fixed module titles to comply with Requirement #8: Fixed module and assembly titles to comply with Requirement #8: fixing 404 error for clusters sharing 1 PVC (#1923) fix for About Red Hat Developer Hub (#1934) fix for Authentication (#1937) fix for Adoption Insights (#1935) fix for Audit Logs (#1936) fixes for authorization title (#1938) Fix CQA workflow PR comment failing on backticks (#1951) fix remaining CQA errors (#1950) Fix CQA PR comment rendering issues (#1952) Fix CQA-5 and CQA-17 violations across repo (#1957) Fix remaining CQA violations in 3 leftover files (#1958) fix broken xrefs (#1959) fix book-link/book-title attributes (#1961) Fix broken link: Casbin link in Orchestrator docs [main] (#1973) Fixing CQA 16 (#1985) fixes from OCI artifact paths (#1963) Fix broken link to dynamic-plugins.default.yaml and orphaned upgrade module (#1995) Fix CQA workflow: base branch diff and comment duplication (#1999) Fix PR preview comment duplication (#2002) fix: improve CQA-17 disclaimer detection accuracy (#2008) fix: CQA workflow fetch base branch from upstream repo (#2013) Fix build orchestrator js-yaml dependency failure in CI (#2016) Fix PR check status not reflecting build failure (#2017) Fix shellcheck workflow creating duplicate PR comments (#2015) Fix incorrect auth provider resolvers for GitHub (#2038) Fix typo connexion -> connection in LDAP docs (#2039) Resolve all existing CQA violations on main branch (#2052) Fix empty CQA output in CI when checks fail (#2057) Fix CQA/build-orchestrator infinite recursion (#2059) fix copyrights/exec lines for the various scripts; add one for running the cqa so we can check that locally too (#2067)



IMPORTANT: Do Not Merge - To be merged by Docs Team Only
Version(s): N/A (tooling only)
Issue: RHIDP-12787
Preview: N/A (no content changes)
Summary
build/scripts/lint-sonar.sh— local linter that catches the 5 main SonarCloud patterns: missing explicit returns (S1), bare positional params (S2), mergeable nested ifs (S3), missing case defaults (S4), and repeated string literals (S5)Current CQA status (
cqa.sh --all)Test plan
shellcheck build/scripts/lint-sonar.shpasses clean./build/scripts/lint-sonar.shruns against all CQA scripts🤖 Generated with Claude Code