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
diff.go
diff_test.go
file.go
file_test.go
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
tree_test.go
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