Skip to content

diagnostic: Report method overwrite warning#417

Merged
aviatesk merged 1 commit intomasterfrom
avi/diagnostic-report-duplicated-method-def
Dec 30, 2025
Merged

diagnostic: Report method overwrite warning#417
aviatesk merged 1 commit intomasterfrom
avi/diagnostic-report-duplicated-method-def

Conversation

@aviatesk
Copy link
Owner

@aviatesk aviatesk commented Dec 30, 2025

Screenshot 2025-12-31 at 04 31 44

Add toplevel/method-overwrite diagnostic that warns when a method with the same signature is defined multiple times within a package.

The diagnostic message shows the method signature and module name, with a link to navigate to the first definition location.

Closes #387

Add `toplevel/method-overwrite` diagnostic that warns when a method
with the same signature is defined multiple times within a package.

The diagnostic message shows the method signature and module name,
with a link to navigate to the first definition location.
@aviatesk aviatesk force-pushed the avi/diagnostic-report-duplicated-method-def branch from 8aa56fd to 620e27b Compare December 30, 2025 12:32
@codecov
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

❌ Patch coverage is 61.53846% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.31%. Comparing base (576a0b3) to head (620e27b).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/analysis/full-analysis.jl 20.45% 35 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #417      +/-   ##
==========================================
+ Coverage   61.90%   64.31%   +2.41%     
==========================================
  Files          56       44      -12     
  Lines        5638     5338     -300     
==========================================
- Hits         3490     3433      -57     
+ Misses       2148     1905     -243     
Flag Coverage Δ
JETLS.jl 64.31% <61.53%> (-0.07%) ⬇️
LSP.jl ?

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 63f1e31 into master Dec 30, 2025
11 of 13 checks passed
@aviatesk aviatesk deleted the avi/diagnostic-report-duplicated-method-def branch December 30, 2025 13:36
@aviatesk aviatesk changed the title diagnostic: Add method overwrite warning diagnostic: Report method overwrite warning Dec 30, 2025
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.

JETLS should warn if overwriting a Method in a module

1 participant