Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

False positive: 'URL strings' alert on textlint domain-checking rule #1126

Copy link
Copy link

Description

Package

textlint-rule-rfc2606-domains

Alert

URL strings (SUPPLY CHAIN RISK)

Socket flags example.com, example.net, example.org as external URLs that the package "may be accessing at runtime."

Why this is a false positive

This package is a textlint rule that detects placeholder domains in documentation and suggests RFC 2606 reserved domains. The flagged strings are string constants used purely for comparison — the package never makes any network requests.

// These are comparison constants, not URLs accessed at runtime
const RESERVED_DOMAINS = new Set(["example.com", "example.net", "example.org"]);

The entire source is a single file with zero runtime dependencies and no fetch, http, https, or any network imports: https://github.com/h13/textlint-rule-rfc2606-domains/blob/main/src/index.ts

Request

Please consider either:

  1. Marking this as a false positive for this package
  2. Excluding RFC 2606 reserved domains (example.com, example.net, example.org) from the URL strings heuristic, since they are explicitly reserved for documentation use and cannot pose a supply chain risk
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.