Skip to content

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

@harishankard

Description

@harishankard

🐞 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.

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