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

RS1035 violations in report generator projects #5390

Open
dariusclay opened this issue Aug 28, 2024 · 4 comments
Open

RS1035 violations in report generator projects #5390

dariusclay opened this issue Aug 28, 2024 · 4 comments
Assignees

Comments

@dariusclay
Copy link
Contributor

RS1035: The symbol is banned for use by analyzers.

The violations occur in the following two projects. System.IO.* APIs are flagged as banned for use in analyzers and source generators. We need to either keep the suppression introduced in #5370 or fix the issues.

See dotnet/roslyn#63290

@RussKie
Copy link
Member

RussKie commented Nov 5, 2024

@dotnet/dotnet-extensions-compliance please triage

@amadeuszl
Copy link
Contributor

I will check out this one

@amadeuszl amadeuszl self-assigned this Nov 19, 2024
@dariusclay
Copy link
Contributor Author

I will check out this one

Note, the outcome of this might just be "we keep suppressing since there's no alternative". Unless there's a way to emit these reports from the generator via MSBuild, or some other method introduced from Roslyn team.

@amadeuszl
Copy link
Contributor

I checked and tried different solutions with SourceGenerator, IIncrementalGenerator, also I haven't found anything useful for MSBuild. There would be an option to somehow go with reflection instead of Generators but most likely it would not work in build time.

I suggest to close this issue or mark it as blocked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants