Commit Graph
26 Commits
Author SHA1 Message Date
kyu08andStefan Haller 64bcc72e45 Specify return value where named return value is used
After [v0.9.0](https://github.com/mvdan/gofumpt/releases/tag/v0.9.0),
gofumpt prohibits "naked return" for the sake of clarity. This makes
more readable when "named return value" is used.
For more infomation for "prohibition of naked return":
https://github.com/mvdan/gofumpt/issues/285.
2025-10-20 07:56:56 +02:00
kyu08andStefan Haller beb05d4a61 Fix makeAtomic in branches_test
When replacing the naked return with a `return result`, the linter starts to
complain about "return copies lock value: sync/atomic.Int32 contains
sync/atomic.noCopy". I suspect this is also a problem when using a naked return,
and the linter just doesn't catch it in that case. Either way, it's better to
use a pointer to ensure that the atomic is not copied.

Co-authored-by: Stefan Haller <stefan@haller-berlin.de>
2025-10-20 07:56:56 +02:00
kyu08andStefan Haller 65c27dd8ce Remove workaround for "make format"
When a new enough gofumpt version is used (v0.9.0 or later), it suports the
`ignore` directive that we just added, so the workaround is no longer needed.

Co-authored-by: Stefan Haller <stefan@haller-berlin.de>
2025-10-20 07:56:56 +02:00
kyu08andStefan Haller 76452a0bcc Add ignore directive in go.mod
This can be used by go tools such as gofumpt.
2025-10-20 07:56:56 +02:00
kyu08 76948f82c1 Add synchronize event to the hooks of "Check Required Labels" 2025-10-19 22:12:23 +09:00
kyu08andStefan Haller 93b8d70209 Update go to 1.25 2025-10-05 10:17:03 +02:00
kyu08andStefan Haller 47b1ededf3 Bump golangci-lint to v.2.4.0 from v2.2.1 2025-10-05 10:17:03 +02:00
kyu08andStefan Haller e932ea24f2 Run label check workflow only on label events and open pr event 2025-08-18 07:40:38 +02:00
kyu08andStefan Haller 7853df0f25 Enhance PR/Issue templates readability 2025-08-18 07:37:46 +02:00
kyu08andStefan Haller fc84b77db8 Run go generate ./... 2025-08-15 17:17:06 +02:00
kyu08andStefan Haller 3fa5a8eddd Add "CopyToClipboard" command to ConfirmationController 2025-08-15 17:17:06 +02:00
kyu08andStefan Haller e9cc07d4d3 Pass only Git-tracked Go files to gofumpt 2025-08-12 09:05:08 +02:00
kyu08andStefan Haller 649f9cd56f Update the badge of golangci-lint in README.md 2025-08-10 10:35:33 +02:00
kyu08andStefan Haller c4a684ce53 Update CONTRIBUTING.md to clarify translation contribution process 2025-08-10 09:59:54 +02:00
kyu08andStefan Haller d41668f565 Fix last branch to previous branch in TranslationSet.CheckoutByNameTooltip 2025-07-12 18:17:45 +02:00
kyu08andStefan Haller c75d92f270 Update cheatsheets and schema 2025-07-12 18:17:45 +02:00
kyu08andStefan Haller 5b1292006d Add new command "Checkout previous branch" 2025-07-12 18:17:25 +02:00
kyu08andJesse Duffield ac30aee1b8 Bump actions/checkout, actions/setup-go, actions/cache/restore, actions/cache/save 2024-07-06 21:17:29 +10:00
kyu08 4a97fb80f3 Delete the TODO comment about enabling goconst in the future from .golangci.yml 2024-05-24 22:29:44 +09:00
kyu08andStefan Haller e5f4de8d34 Add lint to make target 2024-05-24 12:54:45 +02:00
kyu08 6cf6941a77 Add copyloopvar to enabled linters 2024-05-22 21:57:34 +09:00
kyu08 a65d3119c0 upgrade golangci/golangci-lint-action to v3.7.0 2023-08-21 18:11:33 +09:00
kyu08 51ecf4089b upgrade actions/setup-go to v4 and remove actions/cache for go cache 2023-08-21 18:10:52 +09:00
kyu08 0c0fe8997b upgrade goreleaser/goreleaser-action to v4 2023-08-21 18:09:59 +09:00
kyu08 f86309dd03 upgrade JamesIves/github-sponsors-readme-action to v1.2.2 2023-08-21 18:09:33 +09:00
kyu08 a1738a77ae Add Makefile 2023-08-19 00:13:03 +09:00