-
Notifications
You must be signed in to change notification settings - Fork 12k
The "--format" flag of the "ng lint"-command produces invalid output. #12674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I faced the exact problem, this started to appear after angular 7 update for me. |
It seems that the commit aa25a33 is the problem |
The problem is caused by aa25a33#diff-de67da9e5a0afd9e30e8fa8a17ada2ceR18 protected async runSingleTarget(targetSpec: TargetSpecifier, options: string[]) {
this.logger.info(`Linting ${JSON.stringify(targetSpec.project)}...`);
return super.runSingleTarget(targetSpec, options);
} Specifically this.logger.info(`Linting ${JSON.stringify(targetSpec.project)}...`); Output (
Solution: |
this problem breaks several of my builds currently, as well... parseable output formats should never have this kind of text injection.. at the very least, they should have a switch to allow us to exempt our output from such things. For example, making the As a temporary workaround, the following two things worked for me:
or
where |
I also see 'All files pass linting.' at the end of the output |
The workaround from @corvinrok ported to windows systems:
or
|
…s produces invalid output fixes #12674
…s produces invalid output fixes #12674
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Angular CLI: 7.0.2
Node: 8.11.1
OS: linux x64 (Debian 9)
Angular: 7.0.0
... animations, cdk, common, compiler, compiler-cli, core, forms
... http, language-service, material, platform-browser
... platform-browser-dynamic, router
@angular-devkit/architect 0.10.2
@angular-devkit/build-angular 0.10.2
@angular-devkit/build-optimizer 0.10.2
@angular-devkit/build-webpack 0.10.2
@angular-devkit/core 7.0.2
@angular-devkit/schematics 7.0.2
@angular/cli 7.0.2
@ngtools/webpack 7.0.2
@schematics/angular 7.0.2
@schematics/update 0.10.2
rxjs 6.3.3
typescript 3.1.3
webpack 4.19.1
Description
The
--format
flag produces invalid output.Repro steps
ng lint --format checkstyle [name of the angular project]
The log given by the failure
Desired functionality
The output should not contain
Linting "[name of the angular project]"...
The text was updated successfully, but these errors were encountered: