Repository navigation
feat(ng-dev/format): report line numbers for formatting failures - #4127
Merged
alan-agius4 merged 1 commit intoNov 24, 2026
Merged
Conversation
Report the 1-based line number of the first formatting, lint, or syntax failure in `ng-dev format` output and capture it in the `angular-ng-dev-format` GitHub Actions problem matcher so annotations render inline in the pull request diff view.
alan-agius4
force-pushed
the
feat/ng-dev-format-line-number
branch
from
November 24, 2026 14:11
6615a31 to
ee8fe54
Compare
alan-agius4
marked this pull request as ready for review
November 24, 2026 14:11
There was a problem hiding this comment.
Code Review
This pull request introduces line-number reporting for formatting and linting failures in the ng-dev tool. It updates the Formatter interface to include a getFailureLine method, implements this logic for Prettier and Buildifier, and updates the parallel execution logic to capture and display these line numbers in logs. The review comment highlights a potential performance bottleneck where awaiting getFailureLine inside the parallel loop blocks worker threads; this is a valid improvement opportunity for the current implementation.
Contributor
Author
|
This PR was merged into the repository. The changes were merged into the following branches:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ng-dev format(PrettierandBuildifier), while keeping the follow-uppnpm ng-dev format files <files>command free of:line.angular-ng-dev-formatGitHub Actions problem matcher (github-actions/npm/checkout-and-setup-node/matchers.json) to capture the optional line number ("line": 3) so GitHub renders inline annotations in the PR Files changed diff view while remaining backwards-compatible with legacy line-less output.ng-dev/format/test/format.spec.ts), and problem matcher parsing (github-actions/bazel/configure-remote/failure-annotations.spec.ts), and regenerategithub-actions/release/publish/main.js.