Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Using outputFile option on a multiprojects workspace only contains last project results #944

@r1m

Description

@r1m

Description and reproduction of the issue

When using outputFile option on a workspace with multiple sub-projects, the resulting report only contains the last one. All intermediary reports are lost.

❯ ng lint --fix --format json --output-file ./reports/lint.json

Linting "myapp"...
Lint errors found in the listed files.


Linting "mylib"...
Lint errors found in the listed files.

Both projects contains errors but only the ones from mylib are in the json report.
Maybe it need some changes that enable path like reports/[projectName].json

Minimal reproduction

ng new --no-create-application
ng add @angular-eslint/schematics
ng g @angular-eslint/schematics:app --name myapp
ng g @angular-eslint/schematics:lib --name mylib

Versions

package version
@angular-eslint/builder 13.1.0
ESLint 8.11.0
node 16.13.2
# Please run `npx ng version` in your project and paste the full output here:
Angular CLI: 13.1.4
Node: 16.13.2
Package Manager: npm 8.1.2
OS: linux x64

Angular: 13.1.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1301.4
@angular-devkit/build-angular   13.1.4
@angular-devkit/core            13.1.4
@angular-devkit/schematics      13.1.4
@angular/cli                    13.1.4
@schematics/angular             13.1.4
ng-packagr                      13.3.0
rxjs                            7.4.0
typescript                      4.5.5
  • I have updated to the latest supported version of the packages and checked my ng version output per the instructions given here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: builderAngular CLI builder which enables executing ESLint in Angular CLI workspacestriageThis issue needs to be looked at and categorized by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions