Skip to content

diagnostics: Add allow_unused_underscore config option#415

Merged
aviatesk merged 1 commit intomasterfrom
avi/allow_unused_underscore
Dec 29, 2025
Merged

diagnostics: Add allow_unused_underscore config option#415
aviatesk merged 1 commit intomasterfrom
avi/allow_unused_underscore

Conversation

@aviatesk
Copy link
Owner

Add a new configuration option diagnostic.allow_unused_underscore (default: true) that suppresses unused variable diagnostics for names starting with _. This follows the common convention in many programming languages where underscore-prefixed names indicate intentionally unused variables.

When enabled, lowering/unused-argument and lowering/unused-local diagnostics are not reported for variables like _x, __unused, or just _.

Written by Claude

Add a new configuration option `diagnostic.allow_unused_underscore`
(default: `true`) that suppresses unused variable diagnostics for
names starting with `_`. This follows the common convention in many
programming languages where underscore-prefixed names indicate
intentionally unused variables.

When enabled, `lowering/unused-argument` and `lowering/unused-local`
diagnostics are not reported for variables like `_x`, `__unused`, or
just `_`.

Written by Claude

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Dec 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.30%. Comparing base (035eab0) to head (2d31bbd).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #415      +/-   ##
==========================================
+ Coverage   64.28%   64.30%   +0.02%     
==========================================
  Files          44       44              
  Lines        5253     5256       +3     
==========================================
+ Hits         3377     3380       +3     
  Misses       1876     1876              
Flag Coverage Δ
JETLS.jl 64.30% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aviatesk aviatesk merged commit d344901 into master Dec 29, 2025
15 of 16 checks passed
@aviatesk aviatesk deleted the avi/allow_unused_underscore branch December 29, 2025 15:01
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