Skip to content

Output boilerplate first#1096

Merged
LandonTClipp merged 1 commit intovektra:v3from
skitt:boilerplate-first
Aug 28, 2025
Merged

Output boilerplate first#1096
LandonTClipp merged 1 commit intovektra:v3from
skitt:boilerplate-first

Conversation

@skitt
Copy link
Contributor

@skitt skitt commented Jul 30, 2025

Description

Many projects expect their boilerplate to come before "generated by" comments, as produced by Mockery v2. This restores that order.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Version of Go used when building/testing:

  • 1.22
  • 1.23
  • 1.24

How Has This Been Tested?

I regenerated mocks and the boilerplate was output at the top of generated mocks. This can be seen in the in-project tests too.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Many projects expect their boilerplate to come before "generated by"
comments, as produced by Mockery v2. This restores that order.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
@LandonTClipp LandonTClipp merged commit 0a3de62 into vektra:v3 Aug 28, 2025
6 checks passed
@skitt skitt deleted the boilerplate-first branch August 28, 2025 15:05
@skitt
Copy link
Contributor Author

skitt commented Aug 28, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Generated by" comments appear above boilerplate

2 participants