Move mechanical Bugbot rules to lint and CI checks

Abierto
#26,852 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
eslint, typescript
Área
ci-cd, tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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]

Lenguaje dominante
TypeScript
Estrellas
8.8k
Forks
1.9k
Merge medio
1 d 8 h
PR fusionados (30 d)
744

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de getsentry/sentry-javascript

Todos los issues de getsentry/sentry-javascript

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.