Skip to content

fix(rules): unused new in delta/6 breaks --warnings-as-errors on main - #882

Merged
hyperpolymath merged 2 commits into
mainfrom
fix/pr-automerge-unused-new
Sep 30, 2026
Merged

hyperpolymath merged 2 commits into
mainfrom
fix/pr-automerge-unused-new

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

main fails mix compile --force --warnings-as-errors (the mode used by tests.yml:109 and escript-soundness.yml:141):

warning: variable "new" is unused
 248 │   defp delta(old, new, from, to, status, source) do

Why it is on main: #877 was squash-merged at 2026-09-30T10:00Z with commits 09c6b16 + e6419d4 only. This fix (76b8c89) was pushed to the same branch but did not make the squash, so main (d369a80) carries the warning.

Change: new → _new. One token; no behaviour change.

Verified: forced strict compile on this head → rc=0; on origin/main → rc=1.

🤖 Generated with Claude Code

https://claude.ai/code/session_0136eszqrQ53Kj7aBH1D4rXK

Escript packaging soundness compiles with --warnings-as-errors and has
been red on this since #862. Every field delta/6 needs is read from the
parsed pins by its callers; nothing downstream reads a ref off a delta.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136eszqrQ53Kj7aBH1D4rXK
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 17 minutes.

Check out review usage here.

View limit details

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

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: ea3f58b9-0549-403b-8a5c-e069535be5d2

📥 Commits

Reviewing files that changed from the base of the PR and between 948f311 and 1bea6ec.

📒 Files selected for processing (1)
  • lib/rules/pr_automerge.ex

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

Comment @coderabbitai help to get the list of available commands.

@hyperpolymath
hyperpolymath enabled auto-merge (squash) September 30, 2026 10:10
@hyperpolymath
hyperpolymath merged commit 300fd45 into main Sep 30, 2026
41 of 45 checks passed
@hyperpolymath
hyperpolymath deleted the fix/pr-automerge-unused-new branch September 30, 2026 10:21
hyperpolymath added a commit that referenced this pull request Sep 30, 2026
Resolves conflicts after #875 squash-merged and #881/#882 landed:
cicd_rules hardcoded_tmp takes main's mktemp skip; workflow_hardening
keeps with_local_scripts; scanner_suppression test takes main's
fixture-based form. mix test: 1713 tests, 0 failures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QFphKkDVB9pUDSCD4bkz65
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.

1 participant