bench-forgejo/modules/migration
Wim cb50375e2b
Add more linters to improve code readability (#19989)
Add nakedret, unconvert, wastedassign, stylecheck and nolintlint linters to improve code readability

- nakedret - https://github.com/alexkohler/nakedret - nakedret is a Go static analysis tool to find naked returns in functions greater than a specified function length.
- unconvert - https://github.com/mdempsky/unconvert - Remove unnecessary type conversions
- wastedassign - https://github.com/sanposhiho/wastedassign -  wastedassign finds wasted assignment statements.
- notlintlint -  Reports ill-formed or insufficient nolint directives
- stylecheck - https://staticcheck.io/docs/checks/#ST - keep style consistent
  - excluded: [ST1003 - Poorly chosen identifier](https://staticcheck.io/docs/checks/#ST1003) and [ST1005 - Incorrectly formatted error string](https://staticcheck.io/docs/checks/#ST1005)
2022-06-20 12:02:49 +02:00
..
file_format_testdata Validate migration files (#18203) 2022-01-26 10:45:51 +01:00
schemas Validate migration files (#18203) 2022-01-26 10:45:51 +01:00
comment.go Store the foreign ID of issues during migration (#18446) 2022-03-17 18:08:35 +01:00
downloader.go Store the foreign ID of issues during migration (#18446) 2022-03-17 18:08:35 +01:00
error.go Move migrations into services and base into modules/migration (#17663) 2021-11-16 23:25:33 +08:00
file_format.go Validate migration files (#18203) 2022-01-26 10:45:51 +01:00
file_format_test.go Validate migration files (#18203) 2022-01-26 10:45:51 +01:00
issue.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
label.go Validate migration files (#18203) 2022-01-26 10:45:51 +01:00
messenger.go Move migrations into services and base into modules/migration (#17663) 2021-11-16 23:25:33 +08:00
milestone.go Validate migration files (#18203) 2022-01-26 10:45:51 +01:00
null_downloader.go Store the foreign ID of issues during migration (#18446) 2022-03-17 18:08:35 +01:00
options.go Move migrations into services and base into modules/migration (#17663) 2021-11-16 23:25:33 +08:00
pullrequest.go Store the foreign ID of issues during migration (#18446) 2022-03-17 18:08:35 +01:00
reaction.go add test coverage for original author conversion during migrations (#18506) 2022-02-01 13:20:28 -05:00
release.go add test coverage for original author conversion during migrations (#18506) 2022-02-01 13:20:28 -05:00
repo.go Move migrations into services and base into modules/migration (#17663) 2021-11-16 23:25:33 +08:00
retry_downloader.go Store the foreign ID of issues during migration (#18446) 2022-03-17 18:08:35 +01:00
review.go Prevent NPE whilst migrating if there is a team request review (#19855) 2022-06-09 10:50:05 +08:00
schemas_bindata.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
schemas_dynamic.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
schemas_static.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
uploader.go Move migrations into services and base into modules/migration (#17663) 2021-11-16 23:25:33 +08:00