tree-sitter-analyzer 1.1.3__py3-none-any.whl → 1.2.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tree-sitter-analyzer might be problematic. Click here for more details.

@@ -36,9 +36,22 @@ class SecurityValidator:
36
36
  Args:
37
37
  project_root: Optional project root directory for boundary checks
38
38
  """
39
- self.boundary_manager = (
40
- ProjectBoundaryManager(project_root) if project_root else None
41
- )
39
+ # Ensure project_root is properly resolved if provided
40
+ if project_root:
41
+ try:
42
+ resolved_root = str(Path(project_root).resolve())
43
+ self.boundary_manager = ProjectBoundaryManager(resolved_root)
44
+ log_debug(
45
+ f"SecurityValidator initialized with resolved project_root: {resolved_root}"
46
+ )
47
+ except Exception as e:
48
+ log_warning(
49
+ f"Failed to initialize ProjectBoundaryManager with {project_root}: {e}"
50
+ )
51
+ self.boundary_manager = None
52
+ else:
53
+ self.boundary_manager = None
54
+
42
55
  self.regex_checker = RegexSafetyChecker()
43
56
 
44
57
  log_debug(f"SecurityValidator initialized with project_root: {project_root}")