Skip to content

TM1 flags the HTTP verb DELETE in REST route tables despite the pattern comment saying it avoids them #832

Closed

Description

@jwcastillo

Problem

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

  1. added a commit that references this issue on Oct 29, 2026
    a59a3bd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions