Commit graph

3 commits

Author SHA1 Message Date
Gusted 0faeab4fa9
[MODERATION] Remove deadcode (squash)
- Remove deadcode that's no longer used by Forgejo.
2023-11-10 21:45:29 +01:00
Earl Warren 12ddd2b10e
[DEADCODE] add exceptions 2023-11-06 16:39:32 +01:00
Gusted b5ea6e85ac
[LINT] 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)
2023-11-06 15:05:35 +01:00