Skip to content

Commit 2824b84

Browse files
committed
Fix lint warnings
Signed-off-by: Stephen Augustus <[email protected]>
1 parent 37857b6 commit 2824b84

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

entrypoint/entrypoint.go

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func New() (*cobra.Command, error) {
8181
actionCmd.PersistentPostRun = func(cmd *cobra.Command, args []string) {
8282
if out != nil {
8383
if _, err = out.Seek(0, io.SeekStart); err == nil {
84-
// nolint:errcheck
84+
//nolint:errcheck
8585
_, _ = io.Copy(stdout, out)
8686
}
8787
_ = out.Close()

install/github/github.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"github.com/ossf/scorecard-action/github"
2828
)
2929

30+
// Client is a wrapper around GitHub-related functionality.
3031
type Client struct {
3132
*gogh.Client
3233
}
@@ -43,8 +44,10 @@ func New(ctx context.Context) *Client {
4344
return client
4445
}
4546

46-
// Modeled after https://github.com/kubernetes-sigs/release-sdk/blob/e23d2c82bbb41a007cdf019c30930e8fd2649c01/github/github.go
47+
// Modeled after
48+
// https://github.com/kubernetes-sigs/release-sdk/blob/e23d2c82bbb41a007cdf019c30930e8fd2649c01/github/github.go
4749

50+
// GetRepositoriesByOrg // TODO(lint): Needs a comment.
4851
func (c *Client) GetRepositoriesByOrg(
4952
ctx context.Context,
5053
owner string,
@@ -64,6 +67,7 @@ func (c *Client) GetRepositoriesByOrg(
6467
return repos, resp, nil
6568
}
6669

70+
// GetRepository // TODO(lint): Needs a comment.
6771
func (c *Client) GetRepository(
6872
ctx context.Context,
6973
owner,
@@ -77,6 +81,7 @@ func (c *Client) GetRepository(
7781
return pr, resp, nil
7882
}
7983

84+
// GetBranch // TODO(lint): Needs a comment.
8085
func (c *Client) GetBranch(
8186
ctx context.Context,
8287
owner,
@@ -99,6 +104,7 @@ func (c *Client) GetBranch(
99104
return b, resp, nil
100105
}
101106

107+
// GetContents // TODO(lint): Needs a comment.
102108
func (c *Client) GetContents(
103109
ctx context.Context,
104110
owner,
@@ -121,6 +127,7 @@ func (c *Client) GetContents(
121127
return file, dir, resp, nil
122128
}
123129

130+
// CreateGitRef // TODO(lint): Needs a comment.
124131
func (c *Client) CreateGitRef(
125132
ctx context.Context,
126133
owner,
@@ -141,6 +148,7 @@ func (c *Client) CreateGitRef(
141148
return gRef, resp, nil
142149
}
143150

151+
// CreateFile // TODO(lint): Needs a comment.
144152
func (c *Client) CreateFile(
145153
ctx context.Context,
146154
owner,
@@ -163,6 +171,7 @@ func (c *Client) CreateFile(
163171
return repoContentResp, resp, nil
164172
}
165173

174+
// CreatePullRequest // TODO(lint): Needs a comment.
166175
func (c *Client) CreatePullRequest(
167176
ctx context.Context,
168177
owner,

multi-repo-action/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//
1515
// SPDX-License-Identifier: Apache-2.0
1616

17-
// nolint
17+
//nolint
1818
// TODO(lint): Remove nolint directive and fix lint warnings
1919
package main
2020

signing/signing.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ import (
2727
"os"
2828
"time"
2929

30-
"github.com/ossf/scorecard-action/entrypoint" //nolint
31-
"github.com/ossf/scorecard-action/options"
3230
sigOpts "github.com/sigstore/cosign/cmd/cosign/cli/options"
3331
"github.com/sigstore/cosign/cmd/cosign/cli/sign"
32+
33+
"github.com/ossf/scorecard-action/entrypoint"
34+
"github.com/ossf/scorecard-action/options"
3435
)
3536

3637
// SignScorecardResult signs the results file and uploads the attestation to the Rekor transparency log.

0 commit comments

Comments
 (0)