namespace io.github.hatayama.uLoopMCP
{
///
/// Security Violation
/// Related Classes: SecurityValidator, SecuritySyntaxWalker
///
public class SecurityViolation
{
/// Violation Type
public SecurityViolationType Type { get; set; }
/// Description of the Security Violation
public string Description { get; set; }
/// Line Number where the Violation Occurred
public int LineNumber { get; set; }
/// Code Snippet Containing the Violation
public string CodeSnippet { get; set; }
/// Violation Message
public string Message { get; set; }
/// API Name Involved in the Violation
public string ApiName { get; set; }
/// Location of the Violation
public string Location { get; set; }
}
///
/// Security Violation Types
///
public enum SecurityViolationType
{
/// Using Declaration of a Forbidden Namespace
ForbiddenNamespace,
/// Dangerous API Call (Method, Property, etc.)
DangerousApiCall,
/// Inheritance from a Dangerous Class
DangerousInheritance,
/// Instantiation of a Dangerous Type
DangerousTypeCreation,
/// Unauthorized Reflection Usage
UnauthorizedReflection
}
}