Skip to content

SonarCloud: shell script hygiene #505

Closed

Description

@don-petry

SonarCloud: shell script hygiene

8 open SonarCloud finding(s) in petry-projects/markets, worst severity MAJOR. Generated by the org SonarCloud Audit.

View in SonarCloud →

Findings

Rule Count Representative message
shelldre:S7688 8 Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more featur

Affected files

  • .github/scripts/apply-code-quality-ruleset.sh (3)
  • .github/scripts/apply-pr-quality-ruleset.sh (2)
  • .github/scripts/apply-repo-settings.sh (1)
  • .github/scripts/apply-secret-scanning-ai-detection.sh (1)
  • .github/scripts/apply-secret-scanning-non-provider-patterns.sh (1)

Priority

Labeled priority:major — mapped from this bucket's worst SonarCloud severity (MAJOR).

Acceptance

  • All findings in this workstream resolved to zero in SonarCloud
  • No behavior change; CI green
  • Real fixes (no blanket NOSONAR unless a confirmed false positive, noted inline)

Idempotent issue — updated automatically each audit run; auto-closed when the finding count reaches zero.

Activity

  1. don-petry commented on Oct 6, 2026

    @don-petry
    ContributorAuthor

    SonarCloud Audit (2026-10-06): still open — 8 finding(s), worst severity MAJOR.

  2. added
    dev-leadFor dev-lead agent pickup
    and removed
    dev-leadFor dev-lead agent pickup
    on Oct 6, 2026
  3. don-petry commented on Oct 6, 2026

    @don-petry
    ContributorAuthor

    Dev-Lead: implementation deferred — automation PR queue is full

    No pull request was opened for issue #505. The org-wide
    open-automation-PR queue is currently at its signed-off cap (see
    standards/pr-limits.json in petry-projects/.github).

    This issue stays labeled dev-lead and will be re-attempted automatically once
    the queue drains — no action is required.

  4. don-petry commented on Oct 13, 2026

    @don-petry
    ContributorAuthor

    SonarCloud Audit (2026-10-13): still open — 8 finding(s), worst severity MAJOR.

  5. added
    dev-leadFor dev-lead agent pickup
    and removed
    dev-leadFor dev-lead agent pickup
    on Oct 13, 2026
  6. don-petry commented on Oct 13, 2026

    @don-petry
    ContributorAuthor

    Dev-Lead Implementation Plan

    Issue: #505 — SonarCloud: shell script hygiene

    Scope

    Replace the 8 POSIX [ ... ] conditional tests flagged by shelldre:S7688 with bash [[ ... ]] in the bash-shebanged .github/scripts/apply-*.sh scripts. No behavior change.

    Implementation Checklist

    • .github/scripts/apply-code-quality-ruleset.sh (lines 34, 55, 95)
    • .github/scripts/apply-pr-quality-ruleset.sh (lines 39, 86)
    • .github/scripts/apply-repo-settings.sh (line 18)
    • .github/scripts/apply-secret-scanning-ai-detection.sh (line 25)
    • .github/scripts/apply-secret-scanning-non-provider-patterns.sh (line 25)

    Tests to Write

    • None — behavior-preserving refactor (-z/-n semantics identical under [[). Verified via bash -n, shellcheck, and a grep confirming no remaining single-bracket tests.

    Test Command

    bash -n <script>, shellcheck .github/scripts/apply-*.sh, bash .dev-lead/scripts/dev-lead-lint.sh

  7. don-petry commented on Oct 13, 2026

    @don-petry
    ContributorAuthor

    Dev-Lead: Implementation Complete — PR #527

    The implementation for issue #505 is durable: commits are pushed and a pull request is open. This record is backed by verifiable artifacts you can confirm in one click.

    Review happens on the PR. Acceptance criteria and test results are evidenced by the PR's diff and CI checks — not asserted here. If a later stage fails, this claim is retracted in place.

  8. added a commit that references this issue on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev-leadFor dev-lead agent pickuppriority:majorSonarCloud MAJOR severitysonarcloud-auditSonarCloud audit finding (idempotent marker)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions