Closed
Description
Describe the bug
When the code contains special character, it can affect the XML output
To Reproduce
- Clone https://github.com/HariSekhon/Nagios-Plugins
- Run jscpd
jscpd -o toto --min-lines 15 --reporters xml Nagios-Plugins
- Lint the XML file
xmllint toto/jscpd_report.xml
Expected behavior
The output from JSCPD should pass
Desktop (please complete the following information):
Current jscpd version 2.0.15
Activity
kucherenko commentedon Mar 8, 2020
thank you for the bug report, will fix it
kucherenko commentedon Mar 8, 2020
my output is
do you have the same?
juli1 commentedon Mar 8, 2020
Not at all - I got a 2Mb file.
juli1 commentedon Mar 8, 2020
I retried with version 2.0.16 and got the same results.
For information, I am running node 10.19.0.
kucherenko commentedon Mar 8, 2020
fixed at jscpd@3.0.0
juli1 commentedon Mar 8, 2020
Thank you so much!
fix(xml reporter): fix issue with CDATA in xml reporter