Browse by Tags
All Tags » SDK
Showing page 1 of 2 (17 total posts)
-
C# version of custom rule for Tutorial: Creating Custom Rules
-
VB version of custom rule for Tutorial: Creating Custom Rules
-
Hi,
I'm trying to write some custom rules with the evaluation version of CIR (v. 1.9.10111 with SDK v. 1.1.29) but I'm not sure I have the right version of the help file for the SDK. For example, I can't find the value "Statement" in the "RuleTargets Enumeration" documentation. Also, there is nothing about the ...
-
Here is the Check method for the custom rule that should get you started:
public override bool Check(IElementInfo element)
{
IMethodInfo methodInfo = element as IMethodInfo;
if (methodInfo != null)
{
IMethod method = CodeElementFactory.GetMethod(methodInfo);
if (method != null)
{
ExpressionCollection ...
-
You already know how you can create new custom rules using CodeIt.Right SDK, of not, you may want to read this article first.
In this tutorial we will show how to extend existing rules using the new SDK features introduced in CodeIt.Right v1.8.09300. The new technique is to derive the custom rule from a base rule and override only the methods ...
-
Hi Brian,
The support is free - as long as you are current on the subscription. We will always answer your questions. We also don't mind to write a couple of rules for you for free as part of the training process. Especially if the rule you want is on our to-do list (which is about 200 additional rules at the moment). It is a good idea to run ...
-
Hi Brian,
Yes, you can develop own custom rules using CodeIt.Right SDK. We have a Tutorial: Creating Custom Rules available online, you can find more of these here - https://community.submain.com/content/Tutorials.aspx - CodeIt.Right SDK Documentation few examples in Custom Rule Repository
We opened up and documented more of of the SDK in v1.1, ...
-
In addition to logging debug information as described above, you can do interactive debugging:
1) Open Visual Studio (copy #1) where you want to debug your custom rule
Open project with your custom rule.
Set output path for custom rule project (Project->Properties->Debug->Output path) to CodeIt.Right rules path (usually ...
-
To debug custom rules you can write log messages in to a file. To do that you reference "c:\Program
Files\SubMain\CodeIt.Right for VS2005\SubMain.CodeItRight.Core.dll" and
then use SubMain.Core.ExceptionHandling.UnhandledExceptionManager.LogHandler(string message) - writes into the CodeIt.Right log fileor ...
-
Sample naming rule implementation in C#. For details see this thread - https://community.submain.com/forums/permalink/186/460/ShowThread.aspx#460
1
|
|