You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TM1 flags the HTTP verb DELETE in REST route tables despite the pattern comment saying it avoids them #832
The TM1 code pattern in static_patterns_tool_misuse.py:299
# File deletion commands (delete/remove) with explicit path argument# Separate from rm pattern: requires \b and a short span to a "/" to avoid# matching HTTP verb DELETE in REST docs or "remove" in prose
(r"\b(?:delete|remove)\s+['\"]?/[^\s'\"]{1,100}", 0.80),
says it avoids the HTTP verb DELETE in REST docs, but a REST route table is exactly a verb followed by a space and a / path, so it matches:
GET /api/markets/:id # Get single resource
DELETE /api/markets/:id # Delete resource
skillspector scan <dir> --no-llm on main @ 4c52fbb reports HIGH TM1 "Tool Parameter Abuse" on the DELETE line. Seen in three public skills from affaan-m/ECC: backend-patterns/SKILL.md:33, coding-standards/SKILL.md:268, api-design/SKILL.md:32.
Expected
An uppercase HTTP method at the start of a route line (optionally inside a Markdown table cell or backticks), followed by a URL path, is an API description, not a file deletion. Lowercase prose such as delete /etc/hosts should keep the finding.
I can send a PR if the maintainers agree on the scope (for example: exempt only when the line starts with GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS + whitespace + /, and the path is not a host root such as /etc, /home, /root, /Users, /var).
Activity
fix(tm1): abstain on uppercase HTTP DELETE verbs in REST route tables (…