0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 02:14:06 -05:00
forgejo/routers/web/repo
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
..
actions Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
badges Fix repo badges when the label or text contains dashes 2024-03-20 22:41:20 +01:00
flags
setting [PORT] gitea#30430: Fix rename branch 500 when the target branch is deleted but exist in database 2024-04-15 16:03:09 +02:00
activity.go
attachment.go
blame.go Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
branch.go Use repo object format name instead of detecting from git repository (#29702) 2024-03-20 08:46:28 +01:00
cherry_pick.go
code_frequency.go
commit.go Use db.ListOptionsAll instead of db.ListOptions{ListAll: true} (#29995) 2024-03-26 19:04:27 +01:00
compare.go feat(api): implement branch/commit comparison API (#30349) 2024-04-21 11:58:18 +02:00
contributors.go
download.go
editor.go [BUG] Use correct template for commitmail error 2024-04-02 15:08:53 +02:00
editor_test.go
find.go Escape paths for find file correctly (#30026) 2024-03-26 19:04:27 +01:00
githttp.go
githttp_test.go
helper.go
helper_test.go
issue.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
issue_content_history.go Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
issue_dependency.go
issue_label.go [GITEA] Apply changes to archived labels 2024-04-01 17:46:02 +05:00
issue_label_test.go
issue_lock.go
issue_pin.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go Move watching sub-template to sidebar folder 2024-04-28 12:56:28 +02:00
main_test.go
middlewares.go
migrate.go
milestone.go remove util.OptionalBool and related functions (#29513) 2024-03-06 12:10:46 +08:00
packages.go remove util.OptionalBool and related functions (#29513) 2024-03-06 12:10:46 +08:00
patch.go
projects.go Fix network error when open/close organization/individual projects and redirect to project page (#30387) 2024-04-15 20:01:36 +02:00
projects_test.go
pull.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
pull_review.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
pull_review_test.go [TESTS] pull review deleted from gitea#29888 2024-03-31 13:53:47 +02:00
recent_commits.go
release.go [FEAT]Add Option to hide Release Archive links (#3139) 2024-04-24 15:15:55 +00:00
release_test.go
render.go Refactor render (#30136) 2024-03-30 07:17:31 +01:00
repo.go Count downloads for tag archives 2024-04-08 12:51:27 +02:00
search.go fix code search template 2024-04-11 14:52:37 +00:00
topic.go
treelist.go
view.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
view_test.go
wiki.go
wiki_test.go Make "/user/login" page redirect if the current user has signed in (#29583) 2024-03-11 23:36:58 +07:00