[PR #2019] [MERGED] reformat code #2453

Closed
opened 2025-12-29 03:21:20 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2019
Author: @greizgh
Created: 7/18/2024
Status: Merged
Merged: 7/22/2024
Merged by: @kradalby

Base: mainHead: chore/reformat


📝 Commits (2)

  • 9fe1827 reformat code
  • 8b58e0b fix start -> strategy which was wrongly corrected by linter

📊 Changes

23 files changed (+56 additions, -65 deletions)

View changed files

📝 cmd/headscale/cli/policy.go (+1 -2)
📝 cmd/headscale/cli/utils.go (+4 -5)
📝 hscontrol/app.go (+11 -12)
📝 hscontrol/auth.go (+0 -1)
📝 hscontrol/db/db.go (+3 -4)
📝 hscontrol/db/ip.go (+0 -1)
📝 hscontrol/db/ip_test.go (+2 -0)
📝 hscontrol/db/node_test.go (+3 -4)
📝 hscontrol/db/policy.go (+2 -3)
📝 hscontrol/db/routes.go (+0 -1)
📝 hscontrol/db/routes_test.go (+11 -6)
📝 hscontrol/mapper/mapper.go (+0 -1)
📝 hscontrol/metrics.go (+1 -1)
📝 hscontrol/notifier/notifier.go (+5 -4)
📝 hscontrol/oidc.go (+0 -1)
📝 hscontrol/policy/acls.go (+2 -3)
📝 hscontrol/policy/acls_test.go (+4 -5)
📝 hscontrol/policy/acls_types.go (+1 -1)
📝 hscontrol/poll.go (+0 -1)
📝 hscontrol/types/config.go (+1 -2)

...and 3 more files

📄 Description

This is mostly an automated change with make lint.
I had to manually please golangci-lint in routes_test because of a short variable name.

This is best merged after #2018 to make sure golanci-lint does its job.

  • have read the CONTRIBUTING.md file
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/2019 **Author:** [@greizgh](https://github.com/greizgh) **Created:** 7/18/2024 **Status:** ✅ Merged **Merged:** 7/22/2024 **Merged by:** [@kradalby](https://github.com/kradalby) **Base:** `main` ← **Head:** `chore/reformat` --- ### 📝 Commits (2) - [`9fe1827`](https://github.com/juanfont/headscale/commit/9fe18278bb29f59765af3af7b0d87b6c97f5941d) reformat code - [`8b58e0b`](https://github.com/juanfont/headscale/commit/8b58e0b5a364e5c56f8ec54685907a2bf39ad407) fix start -> strategy which was wrongly corrected by linter ### 📊 Changes **23 files changed** (+56 additions, -65 deletions) <details> <summary>View changed files</summary> 📝 `cmd/headscale/cli/policy.go` (+1 -2) 📝 `cmd/headscale/cli/utils.go` (+4 -5) 📝 `hscontrol/app.go` (+11 -12) 📝 `hscontrol/auth.go` (+0 -1) 📝 `hscontrol/db/db.go` (+3 -4) 📝 `hscontrol/db/ip.go` (+0 -1) 📝 `hscontrol/db/ip_test.go` (+2 -0) 📝 `hscontrol/db/node_test.go` (+3 -4) 📝 `hscontrol/db/policy.go` (+2 -3) 📝 `hscontrol/db/routes.go` (+0 -1) 📝 `hscontrol/db/routes_test.go` (+11 -6) 📝 `hscontrol/mapper/mapper.go` (+0 -1) 📝 `hscontrol/metrics.go` (+1 -1) 📝 `hscontrol/notifier/notifier.go` (+5 -4) 📝 `hscontrol/oidc.go` (+0 -1) 📝 `hscontrol/policy/acls.go` (+2 -3) 📝 `hscontrol/policy/acls_test.go` (+4 -5) 📝 `hscontrol/policy/acls_types.go` (+1 -1) 📝 `hscontrol/poll.go` (+0 -1) 📝 `hscontrol/types/config.go` (+1 -2) _...and 3 more files_ </details> ### 📄 Description This is mostly an automated change with `make lint`. I had to manually please golangci-lint in routes_test because of a short variable name. This is best merged after #2018 to make sure golanci-lint does its job. <!-- Headscale is "Open Source, acknowledged contribution", this means that any contribution will have to be discussed with the Maintainers before being submitted. This model has been chosen to reduce the risk of burnout by limiting the maintenance overhead of reviewing and validating third-party code. Headscale is open to code contributions for bug fixes without discussion. If you find mistakes in the documentation, please submit a fix to the documentation. --> <!-- Please tick if the following things apply. You… --> - [x] have read the [CONTRIBUTING.md](./CONTRIBUTING.md) file - [ ] raised a GitHub issue or discussed it on the projects chat beforehand - [ ] added unit tests - [ ] added integration tests - [ ] updated documentation if needed - [ ] updated CHANGELOG.md <!-- If applicable, please reference the issue using `Fixes #XXX` and add tests to cover your new code. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 03:21:20 +01:00
adam closed this issue 2025-12-29 03:21:21 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2453