Skip to content

chore: resolve remaining Codacy findings and restore lost Cloud exclusions - #286

Merged
SamErde merged 4 commits into
mainfrom
chore/resolve-codacy-findings
Nov 16, 2026
Merged

SamErde merged 4 commits into
mainfrom
chore/resolve-codacy-findings

Conversation

@SamErde

@SamErde SamErde commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Closes #285

Summary

Resolves the 55 Codacy Cloud findings left on main after #284, and moves the Cloud file exclusions into the repo.

 .codacy.yaml
+  exclude_paths:                  # were Cloud ignored-files; lost in the config import
+    src/MarkdownRepair.ps1
+    src/Draft/Remove-OldModule.ps1
+    .github/instructions/github-actions-ci-cd-best-practices.instructions.md
 .github/workflows/{Auto-Assign,Build Module,Publish Release}.yml
-  name: 👷‍♂️ …                    # 👷 + U+200D ZWJ + ♂ + U+FE0F
+  name: 👷 …
 Update-MkDocsNavigation.ps1
+  [OutputType([string])]          # Get-FunctionCategory
+  [OutputType([hashtable])]       # Get-CategorizedFunction
 Get-ModulesWithUpdate.ps1
-  $ModulesWithUpdates
+  foreach ($ModuleUpdate in $ModulesWithUpdates) { $ModuleUpdate }

Markdown: copilot-instructions.md restructured (one H1, sections at H2/H3, commit examples fenced). Prose over 120 characters is wrapped in CONTRIBUTING, SECURITY, SUPPORT, the PR template, and the MkDocs automation doc. Issue-template headings start at H2. CHANGELOG has whitespace and blank-line fixes. README and docs/index.md get added inline disables for the anchor-first layout and long badge lines.

Get-ModulesWithUpdate already declared [OutputType([PSCustomObject])]. The List[PSCustomObject] unrolls to PSCustomObjects either way, but PSScriptAnalyzer inferred Object[] from the = @() initializer. The explicit foreach yields the same pipeline output.

Evidence

  • Before: Codacy Cloud on d7276d9: 55 issues (39 markdownlint, 5 PSUseOutputTypeCorrectly, 2 PSUseShouldProcessForStateChangingFunctions in the formerly excluded scripts, plus the 5 ignored emoji hits).
    After (local):
    • markdownlint-cli2@0.18.1 on all 11 changed Markdown files: 0 error(s).
    • Invoke-ScriptAnalyzer with src/PSScriptAnalyzerSettings.psd1 on both changed scripts: no findings.
    • Pester (Get-ModulesWithUpdate.Tests.ps1, Update-MkDocsNavigation.Tests.ps1): 50 passed, 0 failed.
    • No U+200D left under .github/workflows.

Merge Danger

Door: two-way

Plain revert. The workflow display names change, so if any branch-protection rule or external reference matches on a step or workflow name containing 👷‍♂️, it needs updating. The only in-repo reference (workflow_run → "👷 Build Module") already used plain 👷.

Blast Radius: cosmetic

Workflow and step display names, Markdown formatting, analyzer metadata, and one output statement in Get-ModulesWithUpdate covered by its unit tests.

🤖 Generated with Claude Code

SamErde and others added 4 commits November 16, 2026 17:04
Swap 👷‍♂️ (👷 + U+200D + ♂ + U+FE0F) for plain 👷, which clears Semgrep's
detect-invisible-unicode false positives. The Build Module workflow name
already used plain 👷, so the workflow_run trigger in Build External Help
is unaffected.

Refs #285

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move the three paths that were in Codacy Cloud's ignored-files list into
.codacy.yaml so the exclusions live in the repository.

Refs #285

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add OutputType attributes to Get-FunctionCategory and
  Get-CategorizedFunction.
- Emit Get-ModulesWithUpdate results with an explicit foreach so the
  analyzer sees PSCustomObject items, matching the existing OutputType.
  Pipeline output is unchanged.

Refs #285

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- copilot-instructions.md: single H1, blank lines around headings and
  lists, no trailing colons, fenced commit examples.
- Wrap prose over 120 characters in CONTRIBUTING, SECURITY, SUPPORT, the
  PR template, and MKDOCS-NAVIGATION-AUTOMATION.
- Issue templates: start body headings at H2.
- CHANGELOG: trailing spaces and blank lines around headings and lists.
- README.md and docs/index.md: extend the existing inline disables with
  first-line-heading and line-length.

Refs #285

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SamErde

SamErde commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 06daddc9-9c3d-4357-8c50-54dab0a0dcd8
Commits

Reviewing files that changed from the base of the PR and between d7276d9 and 4b209b8.

Files selected for processing: 17

  • .codacy.yaml
  • .github/CONTRIBUTING.md
  • .github/ISSUE_TEMPLATE/bug-report.md
  • .github/ISSUE_TEMPLATE/feature_request.md
  • .github/PULL_REQUEST_TEMPLATE.md
  • .github/SECURITY.md
  • .github/SUPPORT.md
  • .github/cicd-scripts/Update-MkDocsNavigation.ps1
  • .github/copilot-instructions.md
  • .github/workflows/Auto-Assign.yml
  • .github/workflows/Build Module.yml
  • .github/workflows/Publish Release.yml
  • CHANGELOG.md
  • README.md
  • docs/MKDOCS-NAVIGATION-AUTOMATION.md
  • docs/index.md
  • src/PSPreworkout/Public/Get-ModulesWithUpdate.ps1
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T22:06:09.642863Z 4b209b8 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 4b209b8cc0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the Codacy configuration and targeted lint-cleanup changes.

No open issues 🎉

What changed in this PR

This PR follows up on #284 to address the remaining Codacy findings tracked in #285. It restores repository-managed exclusions and makes targeted lint cleanups across PSPreworkout scripts, workflows, and documentation.

Changes:

  • Restore three previously configured Codacy Cloud file exclusions.
  • Simplify workflow emoji labels and fix Markdown formatting and lint overrides.
  • Add PowerShell output-type metadata and explicitly enumerate module-update results without changing intended pipeline output.
File Description
src/​PSPreworkout/​Public/​Get-ModulesWithUpdate.ps1 Explicitly enumerate results for output-type analysis.
README.md Disable first-line-heading lint for the existing layout.
docs/​MKDOCS-NAVIGATION-AUTOMATION.md Wrap long prose lines.
docs/​index.md Disable line-length lint for existing content.
CHANGELOG.md Remove trailing spaces and add required blank lines.
.github/​workflows/​Publish Release.yml Simplify the build-step emoji.
.github/​workflows/​Build Module.yml Simplify the test-and-build step emoji.
.github/​workflows/​Auto-Assign.yml Simplify workflow and step emojis.
.github/​SUPPORT.md Wrap long prose lines.
.github/​SECURITY.md Wrap vulnerability-response guidance.
.github/​PULL_REQUEST_TEMPLATE.md Wrap an instructional comment and checklist text.
.github/​ISSUE_TEMPLATE/​feature_request.md Change section headings to H2.
.github/​ISSUE_TEMPLATE/​bug-report.md Change section headings to H2.
.github/​copilot-instructions.md Normalize heading hierarchy and fence commit examples.
.github/​CONTRIBUTING.md Wrap prose and add spacing before a code block.
.github/​cicd-scripts/​Update-MkDocsNavigation.ps1 Declare output types for two helper functions.
.codacy.yaml Restore three top-level file exclusions.

Review effort: Balanced

@SamErde
SamErde merged commit b025b25 into main Nov 16, 2026
23 checks passed
@SamErde
SamErde deleted the chore/resolve-codacy-findings branch November 16, 2026 22:27
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.

Resolve remaining Codacy findings and restore lost Cloud exclusions

2 participants