Move mechanical Bugbot rules to lint and CI checks

Offen
#26,852 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
eslint, typescript
Bereich
ci-cd, tooling

Rechercherichtung

Start with .cursor/BUGBOT.md and the existing lint rules linked in issues #26860, #26861, #26880, and #26881; then inspect the node, browser, and E2E test helpers and the CI scripts for the checks listed here. The issue describes several independent workstreams, so pick one unchecked item and trace its existing conventions and tests. Done means that check is enforced and the corresponding Bugbot rule is removed where applicable.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Several rules in .cursor/BUGBOT.md are mechanical enough to enforce with Oxlint, test harness checks, or CI scripts instead of AI review. Counts below are rough scans of packages/*/src at cee40e6.

Zero/near-zero baseline (turn on now)

  • getsentry/sentry-javascript#26854
  • getsentry/sentry-javascript#26856

New sdk/* lint rules

  • getsentry/sentry-javascript#26861
  • getsentry/sentry-javascript#26860
  • getsentry/sentry-javascript#26881
  • getsentry/sentry-javascript#26880
  • Hard-coded attribute/op strings that have a @sentry/conventions constant (src and tests).
  • Literal sentry.origin values matching the trace origin spec (0 current violations).

Test harness checks

  • Validate sentry.origin, sentry.op, and mechanism.type on every captured span/event in node, browser, and E2E test helpers. Most startSpan* calls pass attributes through variables, so lint can't see them.

CI scripts

  • dependencies allowlist for core, browser, browser-utils.
  • bundler-tests check that a bare import '@sentry/browser' / core tree-shakes to an empty bundle (both declare sideEffects: false).
  • Export snapshot per package that fails on removals unless changelog/migration docs change.

Stale Bugbot rules to remove

  • getsentry/sentry-javascript#26854

Judgment rules (error swallowing vs double capture, dataCollection and sanitization through helpers, scope/client API necessity, breaking changes, test quality) stay in Bugbot. Once a rule is enforced, remove it from BUGBOT.md.

via @mydea.

--

View Session [Sentry]

Vorherrschende Sprache
TypeScript
Sterne
8.8k
Forks
1.9k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
744

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus getsentry/sentry-javascript

Alle Issues in getsentry/sentry-javascript

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.