[roll pigweed] pw_presubmit: Make copyright check more forgiving

Be more flexible with whitespace in the copyright check. After updating
to Go v1.19 (pwrev/105381) 'go fmt' wants to change repeated spaces in
comments into tabs. Continue to require the content of the copyright
lines match, but be flexible about the whitespace around that content
for *.go files.

Also, fix the things 'go fmt' wants to fix.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/105400

https://pigweed.googlesource.com/pigweed/pigweed
pigweed Rolled-Commits: 0f9876351caed98..de62a2de159d920
Roller-URL: https://ci.chromium.org/b/8806288470775517777
Cq-Cl-Tag: roller-builder:pigweed-zephyr-roller
Cq-Cl-Tag: roller-bid:8806288470775517777
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I69d5939c9c83901b58a6838c49bcee75223383a6
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/zephyr-integration/+/105600
Bot-Commit: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
1 file changed
tree: 28d7ca9a8768130fff010e6931bfd0caa212aac5
  1. .gitmodules
  2. test.sh