bench-forgejo/modules
Gusted 59fd864fad
Add breaking email restrictions checker in doctor ()
* Add breaking change check in doctor

- This patch introduces a new kind of doctor type, breaking. This file
is made to register checks that helps with detecting when a breaking
change might impact a Gitea instance.
- For now the only check here(and the reason of creating this) is to
check if all users in the database has a valid email address, which
might not be the case after
https://github.com/go-gitea/gitea/pull/17688. This _simply_ uses the
validation function to detect and report these cases.
- Helps admins with detecting .
- I have no clue which priority should be and IsDefault is true, because
when breaking change happen and we have a doctor check for it, we can
say "run `gitea doctor` to help you with this and maybe you find other
errors 😉".

* Makes no sense tbh

* Fix copyright

* Update modules/doctor/breaking.go

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>

Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2022-06-07 16:51:33 -04:00
..
activitypub format with gofumpt () 2022-01-20 18:46:10 +01:00
analyze Simplify IsVendor () 2022-05-06 10:12:30 +01:00
appstate Use a struct as test options () 2022-04-14 21:58:21 +08:00
auth Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
avatar Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
base Update JS dependencies () 2022-04-01 02:15:46 +02:00
cache Update go-chi/cache to utilize Ping() () 2022-05-15 20:43:27 +02:00
charset Detect truncated utf-8 characters at the end of content as still representing utf-8 () 2022-05-21 14:06:24 +01:00
container Move reaction to models/issues/ () 2022-03-31 17:20:39 +08:00
context Move some repository related code into sub package () 2022-06-06 16:01:49 +08:00
convert Nuke the incorrect permission report on /api/v1/notifications () 2022-05-20 18:57:49 +02:00
csv format with gofumpt () 2022-01-20 18:46:10 +01:00
doctor Add breaking email restrictions checker in doctor () 2022-06-07 16:51:33 -04:00
emoji format with gofumpt () 2022-01-20 18:46:10 +01:00
eventsource Improve Stopwatch behavior () 2022-04-25 22:45:22 +02:00
generate Use base32 for 2FA scratch token () 2022-01-26 12:10:10 +08:00
git Only log non ErrNotExist errors in git.GetNote () 2022-06-07 16:39:50 +08:00
gitgraph Move almost all functions' parameter db.Engine to context.Context () 2022-05-20 22:08:52 +08:00
graceful Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
hcaptcha hCaptcha Support () 2020-10-02 23:37:53 -04:00
highlight format with gofumpt () 2022-01-20 18:46:10 +01:00
hostmatcher Support hostname:port to pass host matcher's check () 2022-04-29 01:39:50 +08:00
httpcache Set the LastModified header for raw files () 2022-05-09 17:54:51 +02:00
httplib refactor httplib () 2022-01-19 19:31:39 -05:00
indexer Move some repository related code into sub package () 2022-06-06 16:01:49 +08:00
json Refactor legacy unknwon/com package, improve golangci lint () 2022-04-01 16:47:50 +08:00
lfs Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
log Only set CanColorStdout / CanColorStderr to true if the stdout/stderr is a terminal () 2022-05-03 18:03:34 +02:00
markup Set Setpgid on child git processes () 2022-06-03 15:36:18 +01:00
metrics format with gofumpt () 2022-01-20 18:46:10 +01:00
migration Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
nosql Remove legacy unknwon/com package () 2022-04-02 00:34:57 +08:00
notification Move access and repo permission to models/perm/access () 2022-05-11 12:09:36 +02:00
options Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
packages Add Helm Chart registry () 2022-04-19 12:55:35 -04:00
paginator Remove legacy unmaintained packages, refactor to support change default locale () 2022-04-03 17:46:48 +08:00
password Fixed assert statements. () 2021-06-07 07:27:09 +02:00
pprof refactor: move from io/ioutil to io and os package () 2021-09-22 13:38:34 +08:00
private Add Goroutine stack inspector to admin/monitor () 2022-03-31 19:01:43 +02:00
process Set Setpgid on child git processes () 2022-06-03 15:36:18 +01:00
proxy Return nil proxy function if proxy not enabled () 2021-08-19 16:41:20 -04:00
public Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
queue Fix 64-bit atomic operations on 32-bit machines () 2022-04-27 10:32:04 -05:00
recaptcha refactor: move from io/ioutil to io and os package () 2021-09-22 13:38:34 +08:00
references format with gofumpt () 2022-01-20 18:46:10 +01:00
repository Move some repository related code into sub package () 2022-06-06 16:01:49 +08:00
secret Use CryptoRandomBytes instead of CryptoRandomString () 2022-02-04 18:03:15 +01:00
session format with gofumpt () 2022-01-20 18:46:10 +01:00
setting Make AppDataPath absolute against the AppWorkPath if it is not () 2022-06-06 10:43:17 -04:00
ssh Implement http signatures support for the API () 2022-06-05 08:16:14 +01:00
storage Add Package Registry () 2022-03-30 16:42:47 +08:00
structs Respect DefaultUserIsRestricted system default when creating new user () 2022-04-29 15:38:11 -04:00
svg Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
sync Use queue instead of memory queue in webhook send service () 2022-04-25 20:03:01 +02:00
templates Move access and repo permission to models/perm/access () 2022-05-11 12:09:36 +02:00
test Move access and repo permission to models/perm/access () 2022-05-11 12:09:36 +02:00
timeutil Remove legacy unmaintained packages, refactor to support change default locale () 2022-04-03 17:46:48 +08:00
translation Remove legacy unmaintained packages, refactor to support change default locale () 2022-04-03 17:46:48 +08:00
typesniffer Fix raw endpoint PDF file headers () 2022-05-28 18:10:14 +03:00
updatechecker format with gofumpt () 2022-01-20 18:46:10 +01:00
upload Simplify parameter types () 2021-12-20 04:41:31 +00:00
uri Prevent NPE if gitea uploader fails to open url () 2021-12-23 16:27:33 +00:00
user Add gitea-vet () 2020-04-05 07:20:50 +01:00
util Update go tool dependencies () 2022-05-10 23:55:54 +02:00
validation use IsLoopback () 2022-04-25 13:55:12 +08:00
web Ensure responses are context.ResponseWriters () 2022-05-31 21:27:44 +01:00