-
Notifications
You must be signed in to change notification settings - Fork 885
Empty xml report with checkstyle #1353
Comments
Do you get any failures reported with other formatters? Try quoting your globs in the CLI ( |
If I introduce a linting violation, the command (unchanged) produces a valid checkstyle xml file, it's only when there are no linting errors in the project. EDIT: Just checked, quoting my globs doesn't fix the issue. |
Same problem and expectation (cf. initial comment) here. |
This seems like a general TSLint w/ regards to formatters and not just an issue with the checkstyle one. If there are no violations, nothing gets written to stdout. I'm not sure why this is the current behavior, I'm up for changing this unless anyone can think of a reason why it's better as it is now. |
I agree with this change, because the current behavior makes the wrong assumption that formatters don't need to emit anything on success. It should be noted that custom formatters could potentially make use of this assumption and report a failure even on success (e.g. if the reporter prints "There were N failures: (...)" and CI checks for the string |
This issue also affects the pmd reporter. |
The exit status code provides a better way to indicate success/failure that the textual output of a formatter anyways. I'd say that the current behavior is broken, so let's fix this! |
Any update on this? |
This will be addressed by #1472 and will be fixed in the next release of TSLint |
Bug Report
3.11.0
1.8.10
Actual behavior
File
report.xml
is created, but is emptyExpected behavior
File
report.xml
should have contents, something like:My build server fails because the produced file is invalid XML
The text was updated successfully, but these errors were encountered: