loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'Update golangci-lint to 1.57.2' (#3163) from wetneb/forgejo:3162-update-golangci-lint into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3163
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>

+6 -6
+1 -1
Makefile
··· 29 29 AIR_PACKAGE ?= github.com/cosmtrek/air@v1.49.0 # renovate: datasource=go 30 30 EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/cmd/editorconfig-checker@2.7.0 # renovate: datasource=go 31 31 GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@v0.6.0 # renovate: datasource=go 32 - GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.1 # renovate: datasource=go 32 + GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.2 # renovate: datasource=go 33 33 GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/gxz@v0.5.11 # renovate: datasource=go 34 34 MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/misspell@v0.4.1 # renovate: datasource=go 35 35 SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/swagger@v0.30.6-0.20240201115257-bcc7c78b7786 # renovate: datasource=go
+1 -1
cmd/hook.go
··· 782 782 return nil 783 783 } 784 784 785 - // Write an Pkt-Line based on `data` to `out` according to the specifcation. 785 + // Write an Pkt-Line based on `data` to `out` according to the specification. 786 786 // https://git-scm.com/docs/protocol-common 787 787 func writeDataPktLine(ctx context.Context, out io.Writer, data []byte) error { 788 788 // Implementations SHOULD NOT send an empty pkt-line ("0004").
+2 -2
modules/git/repo_attribute_test.go
··· 225 225 ac, err := gitRepo.GitAttributeChecker("", "linguist-language") 226 226 require.NoError(t, err) 227 227 228 - // calling CheckPath before would allow git to cache part of it and succesfully return later 228 + // calling CheckPath before would allow git to cache part of it and successfully return later 229 229 assert.NoError(t, os.RemoveAll(gitRepo.Path)) 230 230 231 231 _, err = ac.CheckPath("i-am-a-python.p") 232 232 if err == nil { 233 233 t.Skip( 234 - "git check-attr started too fast and CheckPath was succesful (and likely cached)", 234 + "git check-attr started too fast and CheckPath was successful (and likely cached)", 235 235 "https://codeberg.org/forgejo/forgejo/issues/2948", 236 236 ) 237 237 }
+1 -1
tests/integration/editor_test.go
··· 391 391 t.Run("Upload", func(t *testing.T) { 392 392 defer tests.PrintCurrentTest(t)() 393 393 394 - // Upload two seperate times, so we have two different 'uploads' that can 394 + // Upload two separate times, so we have two different 'uploads' that can 395 395 // be used indepently of each other. 396 396 uploadFile := func(t *testing.T, name, content string) string { 397 397 t.Helper()
+1 -1
tests/integration/size_translations_test.go
··· 89 89 fullSize = noDigits.ReplaceAllString(fullSize, "") 90 90 assert.Equal(t, "git: КиБ; lfs: Б", fullSize) 91 91 92 - // Check if file sizes are correclty translated 92 + // Check if file sizes are correctly translated 93 93 testFileSizeTranslated(t, session, path.Join(testUser, testRepoName, "src/branch/main/137byteFile.txt"), "137 Б") 94 94 testFileSizeTranslated(t, session, path.Join(testUser, testRepoName, "src/branch/main/1.5kibFile.txt"), "1,5 КиБ") 95 95 testFileSizeTranslated(t, session, path.Join(testUser, testRepoName, "src/branch/main/1.25mibFile.txt"), "1,3 МиБ")