Skip to content

Commit

Permalink
style: update lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
zbiljic committed Jan 6, 2025
1 parent 21e2469 commit 006ca9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ issues:
exclude-use-default: true
exclude-files:
- ".*\\.mock\\.go$"
exclude-rules:
- path: 'gitexec/(.+)\.go'
linters:
- gocyclo
1 change: 1 addition & 0 deletions cmd/git-run.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func gitRunUpdate(ctx context.Context, repoPath string) error {
case errors.Is(err, ErrGitRepositoryProtected):
return nil
default:
//nolint:gocritic
switch v := err.(type) {
case *GitRepositoryMovedError:
if err1 := gitMove(ctx, repoPath, v.OldURL, v.NewURL); err1 != nil {
Expand Down
1 change: 1 addition & 0 deletions cmd/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ func gitReplaceDefaultBranch(ctx context.Context, repoPath string, from, to *plu
return nil
}

//nolint:gocyclo
func gitCheckAndPull(ctx context.Context, repoPath string) error {
if isRemoteUpToDate, err := gitIsRemoteUpToDate(ctx, repoPath); err != nil {
return err
Expand Down

0 comments on commit 006ca9e

Please sign in to comment.