mirror of
1
Fork 0
forgejo/modules
Gusted 1f4d33de2b
[DEADCODE] Add deadcode linter
- Add the experimental
[deacode](https://pkg.go.dev/golang.org/x/tools/internal/cmd/deadcode)
linter to Forgejo.
- To deal with false positives that can happen due to build tags or with code
that's currently only referenced by test code, the output of the tool is
compared against a known-good output.
- This commit doesn't make any attempt to remove any deadcode.

(cherry picked from commit ac462279e9)
(cherry picked from commit b5ea6e85ac)
(cherry picked from commit 5915f3643c)

[CLEANUP] Remove deadcode

- This is deadcode since https://codeberg.org/forgejo/forgejo/pulls/1802
removed the usage of it.

(cherry picked from commit d840b9923e)
(cherry picked from commit 9442bab626)
(cherry picked from commit 0de9d18863)
(cherry picked from commit 26abf78374)
(cherry picked from commit 05d3a143c3)
(cherry picked from commit 4b3d38d5e1)
(cherry picked from commit a726e71986)
(cherry picked from commit cb62ae5b98)
(cherry picked from commit 8195ba06d5)
(cherry picked from commit 4570fb591a)
2024-01-28 08:19:26 +01:00
..
actions [CI] Search .forgejo/workflows first 2024-01-28 07:47:32 +01:00
activitypub
analyze
assetfs
auth [SECURITY] default to pbkdf2 with 320,000 iterations 2024-01-28 08:13:13 +01:00
avatar
base Refactor some legacy code and remove unused code () 2023-12-28 09:38:59 +00:00
cache Always enable caches () 2023-12-19 09:29:05 +00:00
charset Preserve BOM in web editor () 2024-01-27 18:02:51 +00:00
container
context Simplify how git repositories are opened () 2024-01-27 21:09:51 +01:00
contexttest Simplify how git repositories are opened () 2024-01-27 21:09:51 +01:00
csv
emoji
eventsource
generate
git Simplify how git repositories are opened () 2024-01-27 21:09:51 +01:00
gitgraph
gitrepo Simplify how git repositories are opened () 2024-01-27 21:09:51 +01:00
graceful Suggest to use Type=simple for systemd service () 2024-01-07 15:18:04 +00:00
hcaptcha
highlight Add option to disable ambiguous unicode characters detection () 2023-12-17 14:38:54 +00:00
hostmatcher
html
httpcache Less naked returns () 2023-07-07 05:31:56 +00:00
httplib
indexer [CI] disable meilisearch/elasticsearch test, no server yet in CI 2024-01-28 07:47:32 +01:00
issue/template
json
label
lfs Do not set `Accept` header twice () 2023-12-28 03:59:00 +00:00
log
markup Strip `/` from relative links () 2024-01-27 11:36:01 +08:00
mcaptcha
metrics
migration
nosql
options
packages Use new RPM constants () 2024-01-25 21:40:24 +00:00
paginator
pprof
private [CLI] implement forgejo-cli 2024-01-28 07:47:32 +01:00
process
proxy
proxyprotocol
public Refactor CORS handler () 2023-12-25 20:13:18 +08:00
queue [CI] disable redis test, no redis server yet in CI 2024-01-28 07:47:32 +01:00
recaptcha
references Add support for sha256 repositories () 2024-01-19 17:05:02 +01:00
regexplru
repository Simplify how git repositories are opened () 2024-01-27 21:09:51 +01:00
secret
session
setting [GITEA] add GetFile to config provider 2024-01-28 08:19:25 +01:00
sitemap
ssh
storage [CI] Forgejo Actions based CI for PR & branches 2024-01-28 07:47:32 +01:00
structs [FEAT] allow setting the update date on issues and comments 2024-01-28 08:19:26 +01:00
svg
sync
system
templates Add support for sha256 repositories () 2024-01-19 17:05:02 +01:00
test
testlogger
timeutil Make template `DateTime` show proper tooltip () 2024-01-02 20:09:18 +01:00
translation
turnstile
typesniffer
updatechecker
upload
uri
user
util [DEADCODE] Add deadcode linter 2024-01-28 08:19:26 +01:00
validation
web Refactor CORS handler () 2023-12-25 20:13:18 +08:00
webhook Fix schedule tasks bugs () 2024-01-12 21:50:38 +00:00