pre-commit: add XML files to the trailing-whitespace check#9131
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9131 +/- ##
===========================================
Coverage 15.53% 15.53%
- Complexity 11966 11969 +3
===========================================
Files 5492 5492
Lines 480929 480929
Branches 60325 62142 +1817
===========================================
+ Hits 74710 74716 +6
+ Misses 397957 397950 -7
- Partials 8262 8263 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@blueorangutan package |
|
@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10280 |
DaanHoogland
left a comment
There was a problem hiding this comment.
a lot of excessive whitelines and an occasional indentation remaining. I am sure I missed a lot still. Can you advise if these can be caught in sepparate rules, @jbampton?
|
|
||
|
|
| <parameter name="primary-storage-uuid-want-to-add" value="759ee4c9-a15a-297b-67c6-ac267d8abe29" /> | ||
| <parameter name="script-path" value="/Users/minc/dev/cloud-asf" /> | ||
|
|
| <parameter name="image-install-path" value="template/tmpl/1/5/"/> | ||
|
|
||
|
|
|
|
||
|
|
||
|
|
| </bean> | ||
|
|
||
|
|
| </command> | ||
|
|
| </command> | ||
|
|
| </command> | ||
|
|
|
|
||
|
|
| </command> | ||
|
|
||
|
|
|
Hey @DaanHoogland I want to focus this PR just on one check or test for trailing whitespace in the XML files. In future we can do more clean ups since this PR already has over 3,000+ lines changed. |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
@blueorangutan package |
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10323 |
Description
This PR adds checking for XML files for trailing whitespace.
Trailing whitespace is mostly extra space or data we don't need.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Ran locally:
pre-commit run --all-filesHow did you try to break this feature and the system with this change?