Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: migrate from tenv linter to usetesting linter#20401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
zedkipp merged 1 commit intomainfromzedkipp/usetesting-migrate
Oct 21, 2025

Conversation

@zedkipp
Copy link
Contributor

@zedkippzedkipp commentedOct 21, 2025
edited
Loading

The tenv linter is deprecated in favor of usetesting which offers a superset of lint checks. This message is seen when runningmake lint

[nix-shell:~/src/coder]$ make lint<snip>WARN The linter 'tenv' is deprecated (since v1.64.0) due to: Duplicate feature in another linter. Replaced by usetesting.<snip>

This PR swaps out the deprecated tenv linter for the usetesting linter, and configures it for linting parity.

#20398

tenv is deprecated in favor of usetesting which offers a supersetof lint checks. usetesting is configured for linting parity.
@zedkippzedkipp changed the titlechore: migrate to usetesting linterchore: migrate from tenv linter to usetesting linterOct 21, 2025
iffound {
require.NoError(t,os.Unsetenv("TZ"))
t.Cleanup(func() {
_=os.Setenv("TZ",oldEnv)
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thisos.Setenv call is flagged by the new linter. It's not needed because thet.Setenv call in this test cleans up the environment for ushttps://pkg.go.dev/testing#T.Setenv

@zedkippzedkipp marked this pull request as ready for reviewOctober 21, 2025 20:26
@zedkippzedkipp merged commit9da60a9 intomainOct 21, 2025
80 of 82 checks passed
@zedkippzedkipp deleted the zedkipp/usetesting-migrate branchOctober 21, 2025 21:10
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 21, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@zedkippzedkipp

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@zedkipp@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp