Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change diagnostic message #9

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Change diagnostic message #9

merged 1 commit into from
Jun 5, 2024

Conversation

peczenyj
Copy link
Owner

@peczenyj peczenyj commented Jun 5, 2024

Based on this suggestion from @Antonboom

golangci/golangci-lint#4794 (comment)

instead:

./main_test.go:11:14: os.TempDir() can be replaced by t.TempDir() in TestMain

we will:

./main_test.go:11:14: os.TempDir() should be replaced by t.TempDir() in TestMain

@peczenyj peczenyj self-assigned this Jun 5, 2024
@peczenyj peczenyj changed the base branch from main to devel June 5, 2024 07:31
@peczenyj peczenyj merged commit 49686a2 into devel Jun 5, 2024
2 checks passed
@peczenyj peczenyj added the enhancement New feature or request label Jun 5, 2024
peczenyj added a commit that referenced this pull request Jun 5, 2024
* Bump codecov/codecov-action from 4.0.1 to 4.4.1

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.0.1 to 4.4.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v4.0.1...v4.4.1)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump golang.org/x/tools in the production-dependencies group

Bumps the production-dependencies group with 1 update: [golang.org/x/tools](https://github.com/golang/tools).


Updates `golang.org/x/tools` from 0.21.0 to 0.22.0
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](golang/tools@v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* refactor

* add doc

* must support golang for-loop statements

* change the danalyzer report message (#9)

change from "can be replaced" by "should be replaced"

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
peczenyj added a commit that referenced this pull request Jun 5, 2024
…#10)

* Bump codecov/codecov-action from 4.0.1 to 4.4.1

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.0.1 to 4.4.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v4.0.1...v4.4.1)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump golang.org/x/tools in the production-dependencies group

Bumps the production-dependencies group with 1 update: [golang.org/x/tools](https://github.com/golang/tools).

Updates `golang.org/x/tools` from 0.21.0 to 0.22.0
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](golang/tools@v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* refactor

* add doc

* must support golang for-loop statements

* change the danalyzer report message (#9)

change from "can be replaced" by "should be replaced"

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
peczenyj added a commit that referenced this pull request Jun 5, 2024
* Bump codecov/codecov-action from 4.0.1 to 4.4.1

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.0.1 to 4.4.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v4.0.1...v4.4.1)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump golang.org/x/tools in the production-dependencies group

Bumps the production-dependencies group with 1 update: [golang.org/x/tools](https://github.com/golang/tools).


Updates `golang.org/x/tools` from 0.21.0 to 0.22.0
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](golang/tools@v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* refactor

* add doc

* must support golang for-loop statements

* change the danalyzer report message (#9)

change from "can be replaced" by "should be replaced"

* must support defer statement (#11)

* must support defer statement
* add test with t.Cleanup

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant