1
0
Fork 0
forgejo/modules
Gusted a726e71986
[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)
2024-01-01 13:50:28 +01:00
..
actions [CI] Search .forgejo/workflows first 2024-01-01 13:02:36 +01:00
activitypub
analyze
assetfs
auth [SECURITY] default to pbkdf2 with 320,000 iterations 2024-01-01 13:50:26 +01:00
avatar
base Refactor some legacy code and remove unused code (#28622) 2023-12-28 09:38:59 +00:00
cache Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
charset Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
container
context Abstract hash function usage (#28138) 2023-12-13 21:02:00 +00:00
contexttest
csv
doctor Add orphaned topic consistency check (#28507) 2023-12-18 15:32:08 +00:00
emoji
eventsource
generate
git Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
gitgraph
graceful
hcaptcha
highlight Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
hostmatcher
html
httpcache
httplib
indexer [CI] disable meilisearch/elasticsearch test, no server yet in CI 2024-01-01 13:02:36 +01:00
issue/template
json
label
lfs Do not set Accept header twice (#28598) 2023-12-28 03:59:00 +00:00
log
markup Fix the issue ref rendering for wiki (#28556) 2023-12-20 14:11:59 +00:00
mcaptcha
metrics
migration
nosql
options
packages
paginator
pprof
private [CLI] implement forgejo-cli 2024-01-01 13:02:36 +01:00
process
proxy
proxyprotocol
public Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
queue [CI] disable redis test, no redis server yet in CI 2024-01-01 13:02:36 +01:00
recaptcha
references
regexplru
repository Make offline mode as default to no connect external avatar service by default (#28548) 2023-12-21 07:42:16 +00:00
secret
session
setting [GITEA] add GetFile to config provider 2024-01-01 13:50:27 +01:00
sitemap
ssh
storage [CI] Forgejo Actions based CI for PR & branches 2024-01-01 13:02:36 +01:00
structs [FEAT] allow setting the update date on issues and comments 2024-01-01 13:50:27 +01:00
svg
sync
system
templates Render PyPi long description as document (#28272) 2023-12-05 15:02:01 +00:00
test
testlogger
timeutil Refactor timeutil package (#28623) 2023-12-28 10:09:57 +00:00
translation
turnstile
typesniffer
updatechecker
upload
uri
user
util [DEADCODE] Add deadcode linter 2024-01-01 13:50:28 +01:00
validation
web Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
webhook