Skip to content

Ng lint produces to multiple xml content in single file #15608

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

Closed
harishankard opened this issue Sep 16, 2019 · 2 comments
Closed

Ng lint produces to multiple xml content in single file #15608

harishankard opened this issue Sep 16, 2019 · 2 comments

Comments

@harishankard
Copy link

harishankard commented Sep 16, 2019

🐞 Ng lint produces to Multiple XML content in single file

- [ x] new
- [x ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [x ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression? Yes

Angular 5 Was not having this issue. Once we moved to Angular 7 we are facing this issue.

Description

when we use ng lint for checkstyle it produces multiple xml content. This result in parsing failure of the xml.

🔬 Minimal Reproduction

when i run this
ng lint --format checkstyle > result-checkstyle.xml;

the result file contains :

<?xml version="1.0" encoding="utf-8"?><checkstyle version="4.3"><file name="../shoppingcart-ang7/shoppingcart/src/app/app.component.ts"><error line="208" column="160" severity="error" message="trailing whitespace" source="failure.tslint.no-trailing-whitespace" /></file></checkstyle>
<?xml version="1.0" encoding="utf-8"?><checkstyle version="4.3"></checkstyle>

This result in xml parsing error.

@alan-agius4
Copy link
Collaborator

Duplicate of #14659

@alan-agius4 alan-agius4 marked this as a duplicate of #14659 Sep 16, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants