forgejo/services/repository/files
silverwind 12b199c5e5
Enable more revive linter rules (#30608)
Noteable additions:

- `redefines-builtin-id` forbid variable names that shadow go builtins
- `empty-lines` remove unnecessary empty lines that `gofumpt` does not
remove for some reason
- `superfluous-else` eliminate more superfluous `else` branches

Rules are also sorted alphabetically and I cleaned up various parts of
`.golangci.yml`.

(cherry picked from commit 74f0c84fa4245a20ce6fb87dac1faf2aeeded2a2)

Conflicts:
	.golangci.yml
	apply the linter recommendations to Forgejo code as well
2024-04-28 15:39:00 +02:00
..
cherry_pick.go Clean up log messages (#30313) 2024-04-15 20:01:35 +02:00
commit.go Cache repository default branch commit status to reduce query on commit status table (#29444) 2024-03-11 23:36:58 +07:00
content.go [PERFORMANCE] git check-attr on bare repo if supported 2024-03-28 10:52:51 +01:00
content_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
diff.go
diff_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
file.go [GITEA] Allow user to select email for file operations in Web UI 2024-02-05 16:09:41 +01:00
file_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
patch.go Clean up log messages (#30313) 2024-04-15 20:01:35 +02:00
temp_repo.go [BUG] Use correct empty commit ID 2024-04-16 01:08:15 +02:00
temp_repo_test.go [BUG] Use correct empty commit ID 2024-04-16 01:08:15 +02:00
tree.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-26 22:30:26 +01:00
tree_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
update.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
upload.go [PERFORMANCE] git check-attr on bare repo if supported 2024-03-28 10:52:51 +01:00