-
Notifications
You must be signed in to change notification settings - Fork 12k
Lint xml output is invalid #14659
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
See also #4959 (comment) |
Hi, as a workaround you can lint a single project by passing the project as an argument.
|
As another workaround you can pipe to ng lint --format=checkstyle | split -l 1 - checkstyle.xml. |
Not sure if the CLI is the right place to address the issue. Maybe tslint's XML reporter is the one to handle the behavior? |
|
In such a case, it's on us to fix the issue. |
@OrangeDog |
@bohni you can set |
@mgechev Any news on this issues? We have this same issue with JSON format...
which results into any invalid JSON. |
Closing since the TSLint builder is deprecated as part of the TSLint deprecation. More info https://blog.angular.io/version-11-of-angular-now-available-74721b7952f7 |
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
Command (mark with an
x
)Is this a regression?
No.
Description
As there's no way to specify output to a file (#4959) the only option is to redirect stdout. However, if there are multiple apps the checkstyle (and other formats) generate multiple xml documents.
🔬 Minimal Reproduction
From a new project run
ng lint --format=checkstyle >checkstyle-result.xml
🔥 Exception or Error
The output is invalid, being a concatenation of multiple documents:
🌍 Your Environment
The text was updated successfully, but these errors were encountered: