-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
Add Roslynator #2269
Comments
Great idea to go even further in C# coverage in MegaLinter :) |
Neat find; I knew of Roslyn but not Roslynator. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
I have not advanced in this linter because there is a blocking problem and today I have taken some time to create the issue: dotnet/roslynator#1060 |
cc: @nvuillam @echoix @Kurt-von-Laven So far I have not implemented it because I have encountered several problems in this issue over the last months: dotnet/roslynator#1060 I have reached the point where from a Dockerfile (outside of megalinter) it works for me but:
The second point is the most problematic because it implies that before executing the linter command itself we have to previously execute another |
|
@nvuillam can you answer what @Kurt-von-Laven and I asked? That is, how to execute the I don't know how to move forward otherwise, I need your advice @nvuillam. |
@bdovaz sorry for the delay, you're right to beep me it's kind of crazy these days/weeks/months :) If you need to run a command before running a linter, you can define a before_lint_files in the linter python class to add a pre_command, like for tflint :) https://github.com/oxsecurity/megalinter/blob/main/megalinter/linters/TfLintLinter.py |
But this function does not receive the input of the path to the file, the dotnet restore command needs this input. |
Do you have an example of the full dotnet restore command that is required ? Most of properties are available from python linter classes, there is probably a way ! |
@nvuillam the second example: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-restore#examples |
We have to note that its quite possible that not all project types, like WPF or winforms, would be able to run in a Linux environment. For the rest, it could work ;) |
Project: https://github.com/JosefPihrt/Roslynator
Analyzers: https://github.com/JosefPihrt/Roslynator/blob/main/src/Analyzers/README.md
Refactorings: https://github.com/JosefPihrt/Roslynator/blob/main/src/Refactorings/README.md
Fixes: https://github.com/JosefPihrt/Roslynator/blob/main/src/CodeFixes/README.md
CLI docs: https://github.com/JosefPihrt/Roslynator/blob/main/docs/cli/README.md
The text was updated successfully, but these errors were encountered: