Skip to content

AST migration removed test-file exemption for unsafe_type_assertion #26

Description

@CodeDeficient

Finding

The old regex-based unsafe_type_assertion detection at ai-slop-detector.ts:1120-1127 explicitly skipped findings in files whose path contained test, spec, or __tests__. The AST migration (PR #24) removed this exemption.

Accepted behavior change

This is an accepted non-critical finding per the PR review. The user considers the exemption overly broad and prefers no special-casing — severityOverrides can suppress the rule for test directories if needed.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions