зеркало из https://github.com/golang/tools.git
febceba19e
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> |
||
---|---|---|
.. | ||
copyright.go | ||
copyright_test.go |