Skip to content

False positive: detects fetch() in JSDoc comments #6

Description

@CodeDeficient

Problem

The missing_error_handling pattern detects fetch( in JSDoc comments where it's used in example code snippets, not actual code.

Example false positive:

/**
 * @example
 * ```tsx
 * const response = await fetch(\`/api/trucks/nearby?lat=\${lat}&lng=\${lng}&radius=\${radius}\`);
 * return response.json();
 * ```
*/

Affected locations in food-truck-finder-poc:

  • hooks/useRadiusFilter.ts:30 - JSDoc example showing how to use the hook
  • hooks/useAutoClaimCheck.ts:79 - JSDoc example
  • components/ui/error-states/UnknownErrorFallback.tsx:54 - JSDoc example
  • components/ui/error-states/NetworkErrorFallback.tsx:40 - JSDoc example
  • components/ui/error-states/DataMissingFallback.tsx:36 - JSDoc example

Expected Behavior

The linter should ignore fetch( patterns inside JSDoc comment blocks.

Severity

Low - Tooling noise, not actual code quality issue.

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