You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error (exception message, type, and callstack where applicable): Fails to suppress rules
To Reproduce
Steps or code to reproduce the behavior:
Install vscode, unity and the right .net sdk
Install C# extension, Debugger for Unity and NuGet Packet Manager
Create a unity project, select vscode as editor and generate a project for code hinting setup stuff.
For some inexplicable reason, make sure you have visual studio installed (with the unity workload) and make sure the project/solution is aware of it. You do not need to be logged in to VS.
Using NuGet Packet manager, download/install Microsoft.Unity.Analyzers > 1.8.2
Run dotnet restore <solution_name> (Command should come with .net sdk)
Restart omnisharp.
Create some example scripts/monobehaviours.
Expected behavior
I expect the rules to be suppressed. Other rules such as UNT0008 do show up.
Screenshots
IDE0051 - Not suppressed by USP0006 (Although, I don't actually understand this rule because I don't understand why an unused private variable is useful)
IDE0044 - Not suppressed by USP0004
IDE0051 - Not suppressed by USP0003
Success of UNT0008
Additional context
I'm working on setting up code guidelines and linting for my team. I'm focusing on roslyn/omnisharp support for VS and VS Code, but I think that roslyn/omnisharp can be used by other editors and just roslyn CI? (Although not 100% sure what CI is as I've never had a chance to work on a project with it - but someone on my team might be interested in it).
From what I understand, anything outside of Visual Studio technically isn't supported by this project, but I'd still like to get this working if possible.
Not sure what is going on with needing VS installed, and not sure if the unity workload is needed or just a C# workload, but either way I think it's odd that the thing won't work in VS Code unless VS is installed and the project files know about it.
Bug description
To Reproduce
Steps or code to reproduce the behavior:
dotnet restore <solution_name>
(Command should come with .net sdk)Expected behavior
I expect the rules to be suppressed. Other rules such as UNT0008 do show up.
Screenshots
IDE0051 - Not suppressed by USP0006 (Although, I don't actually understand this rule because I don't understand why an unused private variable is useful)
IDE0044 - Not suppressed by USP0004
IDE0051 - Not suppressed by USP0003
Success of UNT0008
Additional context
I'm working on setting up code guidelines and linting for my team. I'm focusing on roslyn/omnisharp support for VS and VS Code, but I think that roslyn/omnisharp can be used by other editors and just roslyn CI? (Although not 100% sure what CI is as I've never had a chance to work on a project with it - but someone on my team might be interested in it).
From what I understand, anything outside of Visual Studio technically isn't supported by this project, but I'd still like to get this working if possible.
Not sure what is going on with needing VS installed, and not sure if the unity workload is needed or just a C# workload, but either way I think it's odd that the thing won't work in VS Code unless VS is installed and the project files know about it.
Got the idea to try installing the analyzer based on: https://community.sonarsource.com/t/add-c-support-for-vscode-sonarlint/5888
Thought that if sonarlint could do it, no reason why other analyzers on NuGet couldn't either.
The text was updated successfully, but these errors were encountered: