fix(10632): address PR review blocking issues
Resolved three blocking review items from pr-review-worker: 1. Added @tdd_issue tag at Feature level to fix unit_tests CI failure (each scenario has @tdd_issue_7161 which requires @tdd_issue present) 2. Assigned milestone v3.6.0 to align with linked issue #7161 3. Applied ruff format to resolve lint/format violations in discovery.py
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
Feature: LSP language discovery DoS protection
|
||||
@tdd_issue
|
||||
@tdd_issue_7161
|
||||
Prevent resource exhaustion attacks via directory traversal limits.
|
||||
Issue #7161: Resource exhaustion DoS in LSP language discovery.
|
||||
|
||||
|
||||
@@ -257,7 +257,7 @@ class LanguageDiscovery:
|
||||
break
|
||||
|
||||
# Calculate current depth
|
||||
depth = root[len(directory):].count(os.sep)
|
||||
depth = root[len(directory) :].count(os.sep)
|
||||
if depth > max_depth:
|
||||
logger.warning(
|
||||
"lsp.discovery.max_depth_exceeded",
|
||||
|
||||
Reference in New Issue
Block a user