Skip to content

False positive: substring matching on 'refetch' function name #7

Description

@CodeDeficient

Problem

The missing_error_handling pattern detects fetch( via substring matching on function names like refetch(), which is not actually a fetch call.

Affected location:

  • app/@mobile/discover_food_trucks/DiscoverFoodTrucks.tsx:243 - void refetch() is flagged as fetch(

The regex/pattern matcher is matching fetch inside the function name refetch.

Expected Behavior

The linter should match on actual fetch( function calls, not substrings of function names.

Severity

Low - Tooling noise.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions