tools/copyright
Richard Miller febceba19e copyright: don't skip directories "." or ".." in checkCopyright
The checkCopyright function skips directories with names beginning
with "." (for example ".git"). But TestToolsCopyright invokes
the function on directory "..", which means the test is not checking
anything. To avoid this, make an exception to the "." prefix test
so that "." and ".." will still be checked.

Also add a copyright notice to file gopls/doc/assets/assets.go, so
the TestToolsCopyright test will pass when it's no longer skipping
everything.

Fixes golang/go#68306

Change-Id: I773dd29113b34f79ce33a02cb91a53664d26b3df
Reviewed-on: https://go-review.googlesource.com/c/tools/+/596736
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-07-08 17:34:28 +00:00
..
copyright.go copyright: don't skip directories "." or ".." in checkCopyright 2024-07-08 17:34:28 +00:00
copyright_test.go x/tools: drop go1.18 support 2024-02-29 16:54:26 +00:00