sanposhiho / gomockhandler

Mr. gomockhandler is the clever and more agile manager of golang/mock (uber/mock) 👔
MIT License
111 stars 9 forks source link

Add final newline to gomockhandler config file #94

Closed hori-ryota closed 1 month ago

hori-ryota commented 1 month ago

To ensure that the generated files include a final newline at the end, similar to the behavior of json.Encoder.Encode, which automatically adds a newline after encoding.

Encode writes the JSON encoding of v to the stream, with insignificant space characters elided, followed by a newline character.

Many development tools and text editors expect files to end with a newline. Adding a final newline ensures better compatibility with tools such as Git, diff utilities, and build systems, which may otherwise raise warnings or display unnecessary diffs.

sanposhiho commented 1 month ago

Thanks for the many contributions! Can you make a rebase for the conflict?

hori-ryota commented 1 month ago

Sure! Rebased.

hori-ryota commented 1 month ago

@sanposhiho Thanks to merge! Can you release a new version?

sanposhiho commented 1 month ago

Yup, boom

https://github.com/sanposhiho/gomockhandler/releases/tag/v1.6.1

hori-ryota commented 1 month ago

Thanks!