Skip to content

pre-commit: add XML files to the trailing-whitespace check#9131

Merged
DaanHoogland merged 3 commits into
apache:mainfrom
jbampton:pre-commit-trailing-whitespace-more-types
Jul 12, 2024
Merged

pre-commit: add XML files to the trailing-whitespace check#9131
DaanHoogland merged 3 commits into
apache:mainfrom
jbampton:pre-commit-trailing-whitespace-more-types

Conversation

@jbampton
Copy link
Copy Markdown
Member

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

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Ran locally:

pre-commit run --all-files

How did you try to break this feature and the system with this change?

@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.53%. Comparing base (9f1577d) to head (bfd439a).
Report is 4 commits behind head on main.

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     
Flag Coverage Δ
uitests 4.17% <ø> (ø)
unittests 16.30% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jbampton jbampton marked this pull request as draft May 28, 2024 10:36
@jbampton
Copy link
Copy Markdown
Member Author

jbampton commented Jul 8, 2024

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

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

@jbampton jbampton marked this pull request as ready for review July 8, 2024 02:41
@blueorangutan
Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10280

Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Comment on lines +80 to +81


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

<parameter name="primary-storage-uuid-want-to-add" value="759ee4c9-a15a-297b-67c6-ac267d8abe29" />
<parameter name="script-path" value="/Users/minc/dev/cloud-asf" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

<parameter name="image-install-path" value="template/tmpl/1/5/"/>


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change




Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

</bean>


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

</command>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

</command>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

</command>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change



Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

</command>


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@jbampton
Copy link
Copy Markdown
Member Author

jbampton commented Jul 8, 2024

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.

@github-actions
Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10323

Copy link
Copy Markdown
Contributor

@JoaoJandre JoaoJandre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I am +1 on adding a new rule for excessive white-lines in a future PR

@DaanHoogland DaanHoogland merged commit c923e67 into apache:main Jul 12, 2024
@jbampton jbampton deleted the pre-commit-trailing-whitespace-more-types branch July 12, 2024 08:11
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jul 23, 2024
@DaanHoogland DaanHoogland added this to the 4.20.0.0 milestone Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants