protected override void Initialize(SonarAnalysisContext context) { InvocationTracker.Track(context, InvocationTracker.MatchMethod(new MemberDescriptor(KnownType.System_Diagnostics_Process, "Start")), Conditions.ExceptWhen( InvocationTracker.ArgumentAtIndexIs(0, KnownType.System_Diagnostics_ProcessStartInfo)), InvocationTracker.MethodHasParameters()); PropertyAccessTracker.Track(context, PropertyAccessTracker.MatchProperty( new MemberDescriptor(KnownType.System_Diagnostics_ProcessStartInfo, "FileName")), PropertyAccessTracker.MatchSetter()); ObjectCreationTracker.Track(context, ObjectCreationTracker.MatchConstructor(KnownType.System_Diagnostics_ProcessStartInfo), ObjectCreationTracker.ArgumentAtIndexIs(0, KnownType.System_String)); }