mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367)
Some checks failed
/ release (push) Waiting to run
testing / backend-checks (push) Has been skipped
testing / frontend-checks (push) Has been skipped
testing / test-unit (push) Has been skipped
testing / test-e2e (push) Has been skipped
testing / test-mysql (push) Has been skipped
testing / test-pgsql (push) Has been skipped
testing / test-sqlite (push) Has been skipped
testing / test-remote-cacher (redis) (push) Has been skipped
testing / test-remote-cacher (valkey) (push) Has been skipped
testing / test-remote-cacher (garnet) (push) Has been skipped
testing / test-remote-cacher (redict) (push) Has been skipped
testing / security-check (push) Has been skipped
Integration tests for the release process / release-simulation (push) Has been cancelled
Some checks failed
/ release (push) Waiting to run
testing / backend-checks (push) Has been skipped
testing / frontend-checks (push) Has been skipped
testing / test-unit (push) Has been skipped
testing / test-e2e (push) Has been skipped
testing / test-mysql (push) Has been skipped
testing / test-pgsql (push) Has been skipped
testing / test-sqlite (push) Has been skipped
testing / test-remote-cacher (redis) (push) Has been skipped
testing / test-remote-cacher (valkey) (push) Has been skipped
testing / test-remote-cacher (garnet) (push) Has been skipped
testing / test-remote-cacher (redict) (push) Has been skipped
testing / security-check (push) Has been skipped
Integration tests for the release process / release-simulation (push) Has been cancelled
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org> Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
This commit is contained in:
parent
51ff4970ec
commit
fed2d81c44
427 changed files with 2043 additions and 2046 deletions
|
@ -180,7 +180,7 @@ func (c *compareDump) assertEquals(repoBefore, repoAfter *repo_model.Repository)
|
|||
}).([]*base.Comment)
|
||||
assert.True(c.t, ok)
|
||||
for _, comment := range comments {
|
||||
assert.EqualValues(c.t, issue.Number, comment.IssueIndex)
|
||||
assert.Equal(c.t, issue.Number, comment.IssueIndex)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -207,7 +207,7 @@ func (c *compareDump) assertEquals(repoBefore, repoAfter *repo_model.Repository)
|
|||
comments, ok := c.assertEqual(filename, []base.Comment{}, compareFields{}).([]*base.Comment)
|
||||
assert.True(c.t, ok)
|
||||
for _, comment := range comments {
|
||||
assert.EqualValues(c.t, pr.Number, comment.IssueIndex)
|
||||
assert.Equal(c.t, pr.Number, comment.IssueIndex)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -215,7 +215,7 @@ func (c *compareDump) assertEquals(repoBefore, repoAfter *repo_model.Repository)
|
|||
func (c *compareDump) assertLoadYAMLFiles(beforeFilename, afterFilename string, before, after any) {
|
||||
_, beforeErr := os.Stat(beforeFilename)
|
||||
_, afterErr := os.Stat(afterFilename)
|
||||
assert.EqualValues(c.t, errors.Is(beforeErr, os.ErrNotExist), errors.Is(afterErr, os.ErrNotExist))
|
||||
assert.Equal(c.t, errors.Is(beforeErr, os.ErrNotExist), errors.Is(afterErr, os.ErrNotExist))
|
||||
if errors.Is(beforeErr, os.ErrNotExist) {
|
||||
return
|
||||
}
|
||||
|
@ -267,7 +267,7 @@ func (c *compareDump) assertEqual(filename string, kind any, fields compareField
|
|||
}
|
||||
|
||||
func (c *compareDump) assertEqualSlices(before, after reflect.Value, fields compareFields) any {
|
||||
assert.EqualValues(c.t, before.Len(), after.Len())
|
||||
assert.Equal(c.t, before.Len(), after.Len())
|
||||
if before.Len() == after.Len() {
|
||||
for i := 0; i < before.Len(); i++ {
|
||||
_ = c.assertEqualValues(
|
||||
|
@ -300,15 +300,15 @@ func (c *compareDump) assertEqualValues(before, after reflect.Value, fields comp
|
|||
assert.True(c.t, ok)
|
||||
as, ok := ai.(string)
|
||||
assert.True(c.t, ok)
|
||||
assert.EqualValues(c.t, compare.transform(bs), compare.transform(as))
|
||||
assert.Equal(c.t, compare.transform(bs), compare.transform(as))
|
||||
continue
|
||||
}
|
||||
if compare.before != nil && compare.after != nil {
|
||||
//
|
||||
// The fields are expected to have different values
|
||||
//
|
||||
assert.EqualValues(c.t, compare.before, bi)
|
||||
assert.EqualValues(c.t, compare.after, ai)
|
||||
assert.Equal(c.t, compare.before, bi)
|
||||
assert.Equal(c.t, compare.after, ai)
|
||||
continue
|
||||
}
|
||||
if compare.nested != nil {
|
||||
|
@ -319,7 +319,7 @@ func (c *compareDump) assertEqualValues(before, after reflect.Value, fields comp
|
|||
continue
|
||||
}
|
||||
}
|
||||
assert.EqualValues(c.t, bi, ai)
|
||||
assert.Equal(c.t, bi, ai)
|
||||
}
|
||||
return after.Interface()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue