Skip to content

Commit

Permalink
Bump github.com/golangci/golangci-lint from 1.57.2 to 1.59.1 in /tools (
Browse files Browse the repository at this point in the history
#79)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Oleksandr Redko <[email protected]>
  • Loading branch information
dependabot[bot] and alexandear committed Jul 2, 2024
1 parent d2af29e commit 1eba93d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
17 changes: 5 additions & 12 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ linters-settings:
disable-dec-order-check: false
disable-init-func-first-check: false
gci:
local-prefixes: github.com/alexandear/import-gitlab-commits
sections:
- standard
- default
- prefix(github.com/alexandear/import-gitlab-commits)
goconst:
min-len: 2
min-occurrences: 2
Expand Down Expand Up @@ -48,21 +51,11 @@ linters:
enable-all: true
disable:
- depguard
- maligned
- exhaustivestruct
- exhaustruct
- err113
- nonamedreturns
- gomnd
- nosnakecase
- interfacer
- varcheck
- ifshort
- structcheck
- deadcode
- scopelint
- golint
- rowserrcheck
- wastedassign
- goerr113
- paralleltest
- testpackage
4 changes: 3 additions & 1 deletion internal/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ func (s *GitLab) FetchCommits(ctx context.Context, user *User, projectID int, si
) ([]*Commit, error) {
commits := make([]*Commit, 0, maxCommits)

const commitsPerPage = 100

page := 1
for page > 0 {
cms, nextPage, err := s.fetchCommitPage(ctx, user, page, 100, since, projectID)
cms, nextPage, err := s.fetchCommitPage(ctx, user, page, commitsPerPage, since, projectID)
if err != nil {
return nil, fmt.Errorf("fetch one commit page: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion tools/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/alexandear/import-gitlab-commits/tools

go 1.22

require github.com/golangci/golangci-lint v1.57.2
require github.com/golangci/golangci-lint v1.59.1
4 changes: 2 additions & 2 deletions tools/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/golangci/golangci-lint v1.57.2 h1:NNhxfZyL5He1WWDrIvl1a4n5bvWZBcgAqBwlJAAgLTw=
github.com/golangci/golangci-lint v1.57.2/go.mod h1:ApiG3S3Ca23QyfGp5BmsorTiVxJpr5jGiNS0BkdSidg=
github.com/golangci/golangci-lint v1.59.1 h1:CRRLu1JbhK5avLABFJ/OHVSQ0Ie5c4ulsOId1h3TTks=
github.com/golangci/golangci-lint v1.59.1/go.mod h1:jX5Oif4C7P0j9++YB2MMJmoNrb01NJ8ITqKWNLewThg=

0 comments on commit 1eba93d

Please sign in to comment.