You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So each new instance adds a new header for the output file. This is no problem for normal text output, but for XML output it crashes the result.
And unfortunately the creation of a new linter depends on the lintConfigs, otherwise i could have made a simple pull request just moving the linter creation outside the loop.
Thanks! We'll be in touch soon.
The text was updated successfully, but these errors were encountered:
OS?
Versions.
Repro steps.
The log given by the failure.
Output for pmd:
Output for checkstyle:
Mention any other details that might be useful.
Edit: I looked through the code and found the source of the error:
In .angular-cli.json multiple lintConfigs could be defined (by default 2):
https://github.com/angular/angular-cli/blob/master/packages/%40angular/cli/blueprints/ng2/files/angular-cli.json#L37-L44
Here a new linter instance is created within the foreach loop of the lintConfigs:
https://github.com/angular/angular-cli/blob/master/packages/%40angular/cli/tasks/lint.ts#L40-L48
So each new instance adds a new header for the output file. This is no problem for normal text output, but for XML output it crashes the result.
And unfortunately the creation of a new linter depends on the lintConfigs, otherwise i could have made a simple pull request just moving the linter creation outside the loop.
The text was updated successfully, but these errors were encountered: