[PR #1322] [MERGED] Add tenv linter #15228

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1322
Author: @surik
Created: 11/20/2023
Status: Merged
Merged: 11/21/2023
Merged by: @surik

Base: mainHead: yury/add-tenv


📝 Commits (1)

📊 Changes

2 files changed (+11 additions, -4 deletions)

View changed files

📝 .golangci.yaml (+7 -0)
📝 client/internal/dns/server_test.go (+4 -4)

📄 Description

Tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go 1.17.

Describe your changes

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/1322 **Author:** [@surik](https://github.com/surik) **Created:** 11/20/2023 **Status:** ✅ Merged **Merged:** 11/21/2023 **Merged by:** [@surik](https://github.com/surik) **Base:** `main` ← **Head:** `yury/add-tenv` --- ### 📝 Commits (1) - [`e842018`](https://github.com/netbirdio/netbird/commit/e84201842895bff21240e1264f9b0baaf7155c0d) Add tenv linter ### 📊 Changes **2 files changed** (+11 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `.golangci.yaml` (+7 -0) 📝 `client/internal/dns/server_test.go` (+4 -4) </details> ### 📄 Description Tenv is analyzer that detects using `os.Setenv` instead of `t.Setenv` since Go 1.17. ## Describe your changes ## 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:07:12 -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#15228