[PR #1647] [MERGED] Enable review linter with exported docs check #15696

Closed
opened 2026-08-05 03:08:13 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1647
Author: @mlsmaycon
Created: 2/29/2024
Status: Merged
Merged: 2/29/2024
Merged by: @mlsmaycon

Base: mainHead: enable-revive-linter


📝 Commits (3)

  • 466a029 Enable review linter with exported docs check
  • ee06885 reorg linter config alphabetically
  • 438508a fix linter comments

📊 Changes

5 files changed (+14 additions, -5 deletions)

View changed files

📝 .golangci.yaml (+9 -0)
📝 client/internal/auth/oauth.go (+1 -1)
📝 iface/netstack/tun.go (+1 -1)
📝 management/server/activity/event.go (+1 -1)
📝 management/server/peer/peer.go (+2 -2)

📄 Description

Describe your changes

Exported functions and methods should have comments. This warns on undocumented exported functions and methods.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 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/netbirdio/netbird/pull/1647 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 2/29/2024 **Status:** ✅ Merged **Merged:** 2/29/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `enable-revive-linter` --- ### 📝 Commits (3) - [`466a029`](https://github.com/netbirdio/netbird/commit/466a0296d9327c0b67111f45d9957d88fa9bfdbb) Enable review linter with exported docs check - [`ee06885`](https://github.com/netbirdio/netbird/commit/ee06885a6b2225f5527c82473852b1baeaf7567b) reorg linter config alphabetically - [`438508a`](https://github.com/netbirdio/netbird/commit/438508a90bc3f4a22bb6e842b02e867017dcf4c2) fix linter comments ### 📊 Changes **5 files changed** (+14 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `.golangci.yaml` (+9 -0) 📝 `client/internal/auth/oauth.go` (+1 -1) 📝 `iface/netstack/tun.go` (+1 -1) 📝 `management/server/activity/event.go` (+1 -1) 📝 `management/server/peer/peer.go` (+2 -2) </details> ### 📄 Description ## Describe your changes Exported functions and methods should have comments. This warns on undocumented exported functions and methods. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:08:13 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#15696