Skip to content

Cannot output tslint report formats in batch mode. #10422

Closed
@krotscheck

Description

@krotscheck

Versions

Angular CLI: 6.0.0-rc.5
Node: 8.11.1
OS: darwin x64
Angular: 6.0.0-rc.5
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.5.7
@angular-devkit/build-angular      0.5.7
@angular-devkit/build-ng-packagr   0.5.7
@angular-devkit/build-optimizer    0.5.7
@angular-devkit/core               0.5.7
@angular-devkit/schematics         0.5.7
@ngtools/json-schema               1.1.0
@ngtools/webpack                   6.0.0-rc.5
@schematics/angular                0.5.7
@schematics/update                 0.5.7
rxjs                               6.0.0-uncanny-rc.7
typescript                         2.7.2
webpack                            4.5.0

Repro steps

Begin with an angular repository with more than one project (two libraries, for instance). Then, attempt to use tslint's --format checkstyle --out <outfile> parameters to output the report to a machine readable format (for jenkins). Documentation for their CLI is here: https://palantir.github.io/tslint/usage/cli/

I have attempted the following:

> ng lint --format checkstyle -o ./checkstyle.xml
Architect commands with multiple targets cannot specify overrides....
> ng lint projectname --format checkstyle --out ./checkstyle.xml
Unknown option: '--out'
# Added format to angular.json >> lint.options.format and lint.options.out
# Format works, adding --out results in 
Schema validation failed with the following errors:
  Data path "" should NOT have additional properties(out).
> ng lint projectname --format checkstyle > ./checkstyle.xml
# Works

Observed behavior

See above.

Desired behavior

It should be possible for the ng lint command to output all of tslint's report formats, in batch mode.

Mention any other details that might be useful (optional)

We're using Jenkins as CI, and the checkstyle reporter to pull in all the generated checkstyle files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions