diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-11-12 12:13:34 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-11-12 17:39:42 +0300 |
commit | 400c7225dd2a0dd17e907ce5af25e7ade5ed81fb (patch) | |
tree | 18a980ff722a6cde0130a239129218d76f13cf22 /cmd | |
parent | e55a44689f4a787726df6e230477e77a2b2d9e42 (diff) |
lint: Inline exceptions about missing documentation
Most of the linting exception we have are about missing documentation of
public variables or comments. Let's inline all of these -- it's hard to
keep track of exceptions and keep the list up-to-date. By having a
`//nolint` directive at the site where the document is missing it
becomes a breeze to directly clean it up. Furthermore, it also acts as a
reminder that one might want to add a comment when one stumbles over any
of these comments.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gitaly-git2go/testhelper/testhelper.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/gitaly-git2go/testhelper/testhelper.go b/cmd/gitaly-git2go/testhelper/testhelper.go index 964f2ea71..6bca85693 100644 --- a/cmd/gitaly-git2go/testhelper/testhelper.go +++ b/cmd/gitaly-git2go/testhelper/testhelper.go @@ -19,6 +19,7 @@ var DefaultAuthor = git.Signature{ When: time.Date(2020, 1, 1, 1, 1, 1, 0, time.FixedZone("", 2*60*60)), } +//nolint: revive,stylecheck // This is unintentionally missing documentation. func BuildCommit(t testing.TB, repoPath string, parents []*git.Oid, fileContents map[string]string) *git.Oid { repo, err := git2goutil.OpenRepository(repoPath) require.NoError(t, err) |