Read Error Inspection using Telerik JustCode here
JustCode does on-the-fly analysis of the code. It does code analysis when you type
the code and reports to you an error or warning without any further delay.
![Telerik1.jpg]()
You can download the Telerik JustCode 60 days trial version with dedicated support
here.
To have high lever perspective of Telerik JustCode, I have just a console
application and put no code in it so far.
![Telerik2.jpg]()
JustCode does the analysis along with the Visual Studio inspection. It performs
analysis using some custom inspection.
On the fly you can fix any error reported by pressing Alt+Enter. For example
the following Method2 is trying to pass parameter to Method1 whereas Method1 is defined
without any input parameter. At the time of calling of Method1, on pressing
Alt+Enter, JustCode will suggest possible fixes.
![Telerik3.jpg]()
JustCode performs the following inspection on the code:
For C#
- Identical if and else clauses
- Obsolete casts
- Empty statements
- Assignments with no effect
- Unused private members
- Unused parameters
- Unused variables
- Unused namespaces
- Unreachable statements
For XAML
- Missing object element type
- Missing type of an attached property
- Missing property that an attached property
is referring to
- Not found event handlers
- Ambiguous property that an attached
property is referring to
By default JustCode reports errors using the color red
and warnings in green.
Error in Red
![Telerik4.jpg]()
If you want to change the default color of reporting you can do it by navigating to:
Tools->Options->Environment
![Telerik5.jpg]()
I have changed the error reporting color to blue and now the error is reported in blue
color as below:
![Telerik6.jpg]()
Inspection of the code can be done in fours ways.
Via a tooltip over a highlighted expression
![Telerik7.jpg]()
Via a info popup
![Telerik8.jpg]()
Via a tooltip in the Marker Bar
![Telerik8.5.jpg]()
In the Error list Window
![Telerik9.jpg]()
In this way you can perform analysis of code and fix any error reported
using Telerik JustCode. I hope this article is useful. Thanks for reading.