Skip to content

Register Flow with github-linguist for native .flow language detection #172

Closed as not planned

Description

@godofecht

Goal

Get GitHub Linguist to recognize this Flow language safely without stealing unrelated .flow files.

Current blocker

Do not open the upstream PR yet.

Linguist currently requires at least 2,000 indexed files in the last year for an extension such as .flow, excluding forks, with reasonable distribution across unrelated users/repos. Results dominated by the language owner are filtered out.

A raw extension:flow search is unusable as evidence. On 2026-09-18 it returned about 138k files, dominated by JavaScript Flow libdefs (*.js.flow), while Area9 Flow also uses ordinary .flow files.

Distinctive queries for this language still show owner concentration. "function main() ->" returned 1,716 files after excluding the flooooooooooow org, but visible results were under the maintainer's own account; excluding that account returned zero. "evolves as" had one result outside the org, also under the maintainer's account.

Prepared work

The repository already contains:

  • TextMate grammar and licensed real-world samples under docs/project/linguist/
  • Upstream PR template
  • Current collision analysis and signature draft in docs/project/linguist.md
  • Ecosystem recognition tracker in docs/project/ecosystem-recognition.md

PR #898 further adds Tree-sitter and Pygments support, which strengthens the editor/tooling story but does not satisfy Linguist popularity by itself.

Acceptance

  • Independent usage clears Linguist's current popularity requirement after excluding project-owner concentration
  • Naming/collision strategy agreed with Linguist maintainers
  • Area9 Flow and JavaScript Flow libdefs are represented in the disambiguation test corpus
  • Heuristics do not misclassify competing .flow corpora
  • Upstream Linguist PR opened using the official template
  • Upstream merged and released
  • GitHub language bar reports the accepted Flow language accurately

Important

Do not count unrelated .flow, Area9 Flow, JavaScript Flow libdefs, forks, or maintainer-owned satellite repositories as independent adoption evidence.

Activity

  1. added
    enhancement
    tooling
    on Aug 5, 2026
  2. godofecht commented on Aug 17, 2026

    @godofecht
    ContributorAuthor

    Current upstream-submission audit: there is no installed/accessibly writable github-linguist/linguist fork under the connected account/org, so an upstream PR cannot be opened from the current GitHub integration yet. There is, however, a dedicated writable flooooooooooow/flow-tmLanguage repository; use that as the canonical grammar asset in the Linguist submission rather than referencing a grammar buried under third_party/integrations/vscode. Next concrete step is to fork/install access to github-linguist/linguist, then add the language entry + representative samples + grammar reference on that fork and open the upstream PR. Keep this issue open until GitHub's released Linguist actually reports Flow.

  3. added
    P2-medium
    on Aug 21, 2026
  4. godofecht commented on Oct 2, 2026

    @godofecht
    ContributorAuthor

    Repo-side state is complete: .gitattributes already marks *.flow linguist-detectable=true with documentation/vendored hints in place, and no remap to another language is configured. The blocker remains the 2,000-indexed-file adoption threshold described in the issue body. Nothing actionable in-repo until that corpus exists; recommend leaving this open as the tracking issue.

  5. godofecht commented on Oct 6, 2026

    @godofecht
    ContributorAuthor

    Backlog triage (2026-10-06): closing not planned for the current release cycle, not as implemented. Linguist registration still requires independently adopted .flow evidence and collision-safe upstream acceptance; neither is established. The TextMate grammar, samples, submission pack, and dependency chain remain in docs/project/linguist.md and docs/project/ecosystem-recognition.md. Reopen with independent-user evidence, a validated collision corpus, and a concrete upstream submission plan.

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

    P2-mediumenhancementtooling

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions