Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

dev-infra: linting fails for `BUILD.bazel` file and `ng-dev format files` does not fix the failure

Aperta
#2,346 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@josephperrott ci sta già lavorando.

Dal 3/2/2021.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

area: build & ci P3

In angular/angular#40621, we run into a situation where the ng-dev format ... --check command (run as part of the lint job on CI) finds some formatting issues with a BAZEL.build file and fails. It suggests (or prompts the user) to run ng-dev format files ... to fix the issue, but that command does not fix the linting failure.

In that case, the problem was a glob pattern that included a constant string (see https://github.com/angular/angular/pull/40621#issuecomment-772482472). The fix was to manually change the pattern as follows:

-srcs = glob(["constant.string", "glob/*.pattern"]),
+srcs = ["constant.string"] + glob(["glob/*.pattern"]),

Not sure what is the best way to fix this. Ideally, we should suggest (or prompt the user) to run a command that actually fixes the error. If there is no such command, we should at least show the error message, so users can figure out how to manually fix it themselves.

Lingua principale
JavaScript
Stelle
77
Fork
84
Merge medio
2g 9h
PR unite (30g)
42

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di angular/dev-infra

Tutte le issue di angular/dev-infra

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.