TrayBot
#C# #WindowsForms #Roslyn #.NETFramework
Roslyn for analysis, architectural approach Chain Responsibility
TrayBot is a small assistant for checking pieces of C# code. You copy the code to the clipboard -> the program analyzes it in the background and shows:
- what is suspicious or erroneous in the code;
- what looks correct;
- how to automatically fix some issues.
Currently, the program can find the following situations:
- Mismatch in the number of arguments in a method call
- Mismatch in argument types
- Compatibility check through inheritance
- catch that catches a non-exception
- Empty catch block that "swallows" errors
- override method for which no corresponding base method was found
- Brief technical reference for the class: whether there is a base class, how many interfaces, and whether the class is `abstract` / `static` / `sealed`.
TrayBot can automatically: add curly braces for if statements if they are missing, insert throw in an empty catch; so that the error does not disappear without a trace.
Roslyn for analysis, architectural approach Chain Responsibility
TrayBot is a small assistant for checking pieces of C# code. You copy the code to the clipboard -> the program analyzes it in the background and shows:
- what is suspicious or erroneous in the code;
- what looks correct;
- how to automatically fix some issues.
Currently, the program can find the following situations:
- Mismatch in the number of arguments in a method call
- Mismatch in argument types
- Compatibility check through inheritance
- catch that catches a non-exception
- Empty catch block that "swallows" errors
- override method for which no corresponding base method was found
- Brief technical reference for the class: whether there is a base class, how many interfaces, and whether the class is `abstract` / `static` / `sealed`.
TrayBot can automatically: add curly braces for if statements if they are missing, insert throw in an empty catch; so that the error does not disappear without a trace.