Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE0130 false positive in extension method files. #76484

Open
ADD-Eugenio-Lopez opened this issue Dec 18, 2024 · 3 comments
Open

IDE0130 false positive in extension method files. #76484

ADD-Eugenio-Lopez opened this issue Dec 18, 2024 · 3 comments
Labels
untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@ADD-Eugenio-Lopez
Copy link

Version Used:
Visual Studio 2022 v17.12.3

Steps to Reproduce:

  1. Compile a project with a extension methods file.

Diagnostic Id:
IDE0130: Namespace "..." does not match folder structure, expected "..."

Expected Behavior:
Do not raise this issue, because all the extension method file have the namespace of the original file and this is a false positive. When a file contains methods with parameters that use the reserved word "this" the rule IDE0130 does not be reported.

Actual Behavior:
A issue of the rule IDE0130 is reported in each extension methods file.

Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Dec 18, 2024
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@CyrusNajmabadi
Copy link
Member

I can't repro this. Instead of describing the code, please just give an actual example of the code that causes this to repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

2 participants