Code Analysis
-
What if I want to do some custom code analysis.. is there anyway to do it? I didn't really look at anything roselyn, and default MS analysis is useless... But I got a particular problem in an old code base have I have (some? many? a few?) tasks that are not awaited... (or .Wait()ed in non async method) which call all sort of resources to be disposed at the most inconvenient times.. And.. I'd like to find them all! Any tip?
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
-
What if I want to do some custom code analysis.. is there anyway to do it? I didn't really look at anything roselyn, and default MS analysis is useless... But I got a particular problem in an old code base have I have (some? many? a few?) tasks that are not awaited... (or .Wait()ed in non async method) which call all sort of resources to be disposed at the most inconvenient times.. And.. I'd like to find them all! Any tip?
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
Roll your own? No one can do it for you.
-
What if I want to do some custom code analysis.. is there anyway to do it? I didn't really look at anything roselyn, and default MS analysis is useless... But I got a particular problem in an old code base have I have (some? many? a few?) tasks that are not awaited... (or .Wait()ed in non async method) which call all sort of resources to be disposed at the most inconvenient times.. And.. I'd like to find them all! Any tip?
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
When I was looking into making a VSIX analyzer project I started [here](https://docs.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix).
-
What if I want to do some custom code analysis.. is there anyway to do it? I didn't really look at anything roselyn, and default MS analysis is useless... But I got a particular problem in an old code base have I have (some? many? a few?) tasks that are not awaited... (or .Wait()ed in non async method) which call all sort of resources to be disposed at the most inconvenient times.. And.. I'd like to find them all! Any tip?
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
-
What if I want to do some custom code analysis.. is there anyway to do it? I didn't really look at anything roselyn, and default MS analysis is useless... But I got a particular problem in an old code base have I have (some? many? a few?) tasks that are not awaited... (or .Wait()ed in non async method) which call all sort of resources to be disposed at the most inconvenient times.. And.. I'd like to find them all! Any tip?
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
Roslyn. There's no way around it - As it's tightly integrated with the Compiler (and runs continously while you write code) you have the best access to syntax and the best experience using it. We have a few self-written ones at our company. Have a look here, should be a good start: Getting Started Writing a Custom Analyzer & Code Fix[^]
I only have a signature in order to let @DalekDave follow my posts.
-
Roslyn. There's no way around it - As it's tightly integrated with the Compiler (and runs continously while you write code) you have the best access to syntax and the best experience using it. We have a few self-written ones at our company. Have a look here, should be a good start: Getting Started Writing a Custom Analyzer & Code Fix[^]
I only have a signature in order to let @DalekDave follow my posts.
Thanks for the link, I'll have a look! :) I just hope it's going to be easy to integrate with my VS solution! ;P
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
-
What if I want to do some custom code analysis.. is there anyway to do it? I didn't really look at anything roselyn, and default MS analysis is useless... But I got a particular problem in an old code base have I have (some? many? a few?) tasks that are not awaited... (or .Wait()ed in non async method) which call all sort of resources to be disposed at the most inconvenient times.. And.. I'd like to find them all! Any tip?
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
I've gotten really good at using regex search in visual studio for this stuff. It's low tech but if you can find one instance and you're clever, you can usually Ctrl-Shift-F to find them all. :java: :cool:
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.