forgejo/modules/util
Gusted 0de9d18863
[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)
(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)
2023-12-04 12:47:02 +01:00
..
filebuffer
rotatingfilewriter
color.go
color_test.go
error.go
file_unix.go
file_unix_test.go
file_windows.go
io.go
io_test.go
keypair.go
keypair_test.go
legacy.go [LINT] Add deadcode linter 2023-12-04 12:47:02 +01:00
legacy_test.go [LINT] Add deadcode linter 2023-12-04 12:47:02 +01:00
pack.go
pack_test.go
paginate.go
paginate_test.go
path.go Upgrade to golangci-lint@v1.55.0 (#27756) 2023-10-24 02:54:59 +00:00
path_test.go
remove.go
sanitize.go
sanitize_test.go
sec_to_time.go
sec_to_time_test.go
shellquote.go
shellquote_test.go
slice.go Replace util.SliceXxx with slices.Xxx (#26958) 2023-09-07 09:37:47 +00:00
slice_test.go Replace util.SliceXxx with slices.Xxx (#26958) 2023-09-07 09:37:47 +00:00
string.go
string_test.go
timer.go
timer_test.go
truncate.go
truncate_test.go
url.go Add RemoteAddress to mirrors (#26952) 2023-09-16 16:03:02 +00:00
util.go
util_test.go