CQA 2.1: Rules Development Guide Feb 26#308
CQA 2.1: Rules Development Guide Feb 26#308anarnold97 wants to merge 6 commits intomigtools:mainfrom
Conversation
Signed-off-by: A.Arnold <anarnold@redhat.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughThis PR updates YAML rule development documentation with terminology standardization (e.g., "Builtin" to "Built-in"), wording refinements for clarity, metadata attributes, link macro formatting, and a new step-by-step procedural section for creating and testing a YAML-based rule. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (4)
docs/topics/rules-development/create-first-yaml-rule.adoc (4)
15-20:⚠️ Potential issue | 🟡 MinorUse a file creation command (not
mkdir) forrule.yaml.
mkdircreates a directory, so the subsequent steps will fail.Suggested fix
-$ mkdir /home/<USER>/rule.yaml +$ touch /home/<USER>/rule.yaml
109-114:⚠️ Potential issue | 🟡 MinorFix YAML indentation for
linksexample.
titleshould be nested under the list item, otherwise the YAML is invalid.Suggested fix
- links: - - url: https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Migration_Guide/index.html#Create_or_Modify_Files_That_Control_Class_Loading_in_JBoss_Enterprise_Application_Platform_6 - title: Create or Modify Files That Control Class Loading in JBoss EAP 6 + links: + - url: https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Migration_Guide/index.html#Create_or_Modify_Files_That_Control_Class_Loading_in_JBoss_Enterprise_Application_Platform_6 + title: Create or Modify Files That Control Class Loading in JBoss EAP 6
132-137:⚠️ Potential issue | 🟡 MinorCommand flag and filename are inconsistent.
Use a standard double hyphen and keep the filename consistent withrule.yaml.Suggested fix
-–rules /home/<USER>/rules.yaml +--rules /home/<USER>/rule.yaml
156-156:⚠️ Potential issue | 🟡 MinorKeep the home placeholder consistent.
<USER_NAME>is inconsistent with earlier<USER>.Suggested fix
-Open `/home/<USER_NAME>/output/static-report/index.html` in a web browser. +Open `/home/<USER>/output/static-report/index.html` in a web browser.
assemblies/rules-development-guide/assembly_rule-yaml-conditions.adoc
Outdated
Show resolved
Hide resolved
mpershina
left a comment
There was a problem hiding this comment.
A few changes needed. Otherwise, LGTM!
assemblies/rules-development-guide/assembly_rule-yaml-conditions.adoc
Outdated
Show resolved
Hide resolved
Pkylas007
left a comment
There was a problem hiding this comment.
Only two nits, otherwise LGTM.
Thank you!
…ns.adoc Co-authored-by: Mariya Pershina <53339200+mpershina@users.noreply.github.com>
Co-authored-by: Mariya Pershina <53339200+mpershina@users.noreply.github.com>
Co-authored-by: Mariya Pershina <53339200+mpershina@users.noreply.github.com>
Co-authored-by: Mariya Pershina <53339200+mpershina@users.noreply.github.com>
Co-authored-by: Mariya Pershina <53339200+mpershina@users.noreply.github.com>
CQA Rules Development Guide — Summary Report
CQA - Rules Development Summary
Content set: Rules Development Guide (
docs/rules-development-guideand included assemblies/topics)Assessment standard: CQA 2.1 (Pre-migration and Quality)
Tools: Vale with Red Hat and AsciiDocDITA (DITA) styles only
Outcome: 0 errors, 0 warnings in 49 files
What Was Done
1. Assembly (master.adoc)
[role="_abstract"]so the guide has a clear DITA-style shortdesc (why the user should read the content).:_mod-docs-content-type: ASSEMBLYso the assembly is correctly typed for migration.* link:...[...]and* link:mailto:...[...]so they map cleanly to DITA related-links.2. Procedure (create-first-yaml-rule.adoc)
.Procedureblock title above the ordered list of steps so the task structure matches the expected procedure pattern.3. Red Hat style and terms (topic modules)
about-rules.adoc, changed “plug-ins” to “plugins” per Red Hat style.yaml-custom-variables.adocandyaml-java-provider.adoc, changed “using” to “by using” where it follows a noun (e.g. “message by using”, “code by using a query”).yaml-java-provider.adoc, changed “(url = …)” to “(URL = …)” in the annotation example description.yaml-java-provider.adoc, rephrased “external/open source” to “external or open source” to avoid a slash between alternatives.yaml-dotnet-provider.adoc, changed “the desired reference” to “the required reference” to align with preferred wording.assembly_rule-yaml-conditions.adocandyaml-builtin-provider.adoc, replaced “Builtin” with “built-in” and used the heading “Built-in provider.”4. Spelling (technical and API terms)
Technical and product terms used in the rules-development content were added to the Red Hat spelling allowlist so they are not flagged as misspellings. Examples include: XPath, JSONPath, xml, xpath, uppercased, filecontent, hasTags, nameregex, upperbound, lowerbound, filepaths, filePattern, enums, FQNs, informat, json, and related variants. No change was made to the visible content for these terms; only the spelling checks were adjusted to accept them.
Scope of the rules-development guide
The assessed set includes:
docs/rules-development-guide/master.adoctopics/templates/document-attributes.adoc,topics/making-open-source-more-inclusive.adocassemblies/rules-development-guide/topics/rules-development/that are included by those assembliesTotal: 49 files.
Result