Repository navigation
Address Sonar findings in Logtalk guard - #997
Conversation
Use Bash conditional expressions and explicit default cases in the new guard, and force HTTPS for the pinned Agda download and its redirects. Ratchet-exception: .hypatia-ignore — two exact SD022 entries remove a foreign-tree false positive in sibling migration packets that quote epistemic-types' own src paths; delete each entry when its packet is removed after sibling landing. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Require HTTPS for Agda download .github/workflows/verify-proofs.yml |
The Agda download now requires HTTPS for the initial request and redirects. Retry and output-file handling remain unchanged. |
Logtalk guard conditionals
| Layer / File(s) | Summary |
|---|---|
Update guard checks scripts/check-no-active-logtalk.sh |
Argument checks, comment and file detection, allowlist validation, scanning and final failure checks now use Bash arithmetic, [[ ... ]] conditions and case fallbacks. Existing conditions and outcomes remain unchanged. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Refactor
Possibly related PRs
- hyperpolymath/hypatia#996: This PR follows up on the Agda download workflow and the Logtalk guard introduced in PR
#996. - hyperpolymath/hypatia#994: This PR defines the Agda proof-checking policy used by the workflow that downloads Agda.
Merge Risk: 
Minimal · previous review a86fb
-
No actionable risk introduced by this PR remains; it is mergeable after normal checks.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Title check
-
Explanation
The title names the Sonar findings and the Logtalk guard. The changeset refactors scripts/check-no-active-logtalk.sh to use [[ ... ]] conditionals, locals for positional parameters, and explicit case defaults, which are Sonar-style fixes. The title does not mention the HTTPS change to verify-proofs.yml or the .hypatia-ignore declaration, but those are secondary to the main change. The title is specific and related to the main change, so it passes.
Full details: Description check
-
Explanation
The description is directly related to the changeset. It lists the guard refactor in check-no-active-logtalk.sh, the HTTPS enforcement for the Agda download in verify-proofs.yml, the local validation results, and the .hypatia-ignore ratchet-exception. It also notes an unrelated Governance check failure. The description matches the changes in the raw summary and objectives, so it passes.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 1 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Generate docstrings
-
- Coding Agent task started for docstring generation.
- Create a new PR
-
- 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.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Open the task to resolve the delivery issue or retry. |
|



Follow-up to #996 (merged at
4428672before these post-merge check findings were addressed).scripts/check-no-active-logtalk.shto use Bash[[ ... ]]conditional expressions, assign positional parameters to locals, and give eachcasean explicit default branch (SonarCloud annotations on Complete Logtalk to Elixir rule migration #996).verify-proofs.yml.bash -n,scripts/check-no-active-logtalk.sh --all(1,100 files, 14 allowlisted, 0 violations), andgit diff --checkpass locally.This also supplies the standards exemption-ratchet declaration for the two SD022 entries added in #996:
Ratchet-exception: .hypatia-ignore — two exact SD022 entries remove a foreign-tree false positive in sibling migration packets that quote epistemic-types' own src paths; delete each entry when its packet is removed after sibling landing.
Known unrelated failure: Governance "Allowlist Preflight" rejects the pre-existing ClusterFuzzLite action refs because they are not covered by the standards allowlist at the pinned standards revision; that needs the standards allowlist/pin process and is not changed here.