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

Fix golangci-lint warnings #1064

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Conversation

danielrbradley
Copy link
Member

  • Upgrade golangci-lint to v1.60 (Upgrade golangci-lint to v1.60 #1062) surfaced new warnings about deprecations.
  • The configuration option run.skip-files is deprecated, please use issues.exclude-files.
  • The linter named "megacheck" is deprecated. It has been split into: gosimple, staticcheck, unused.

- Upgrade golangci-lint to v1.60 (#1062) surfaced new warnings about deprecations.
- The configuration option `run.skip-files` is deprecated, please use `issues.exclude-files`.
- The linter named "megacheck" is deprecated. It has been split into: gosimple, staticcheck, unused.
@danielrbradley danielrbradley requested a review from iwahbe August 29, 2024 08:49
@danielrbradley danielrbradley self-assigned this Aug 29, 2024
danielrbradley added a commit to pulumi/pulumi-azure that referenced this pull request Aug 29, 2024
- Fix config warnings, as backported into ci-mgmt: pulumi/ci-mgmt#1064
  - The configuration option run.skip-files is deprecated, please use issues.exclude-files.
  - The linter named "megacheck" is deprecated. It has been split into: gosimple, staticcheck, unused.
- Remove go:linkname which was added when we weren't maintaining patches and so had to use a compiler hack to set a value. This variable no longer exists so has no effect. Reported error:

    SA9009: ineffectual compiler directive due to extraneous space: "// go:linkname is not widely used outside the standard library, but allows us to" (staticcheck)
danielrbradley added a commit to pulumi/pulumi-azure that referenced this pull request Aug 29, 2024
- Fix config warnings, as backported into ci-mgmt: pulumi/ci-mgmt#1064
  - The configuration option run.skip-files is deprecated, please use issues.exclude-files.
  - The linter named "megacheck" is deprecated. It has been split into: gosimple, staticcheck, unused.
- Remove go:linkname which was added when we weren't maintaining patches and so had to use a compiler hack to set a value. This variable no longer exists so has no effect. Reported error:

    SA9009: ineffectual compiler directive due to extraneous space: "// go:linkname is not widely used outside the standard library, but allows us to" (staticcheck)
@danielrbradley danielrbradley requested a review from a team August 29, 2024 09:52
Copy link
Member

@iwahbe iwahbe left a comment

Choose a reason for hiding this comment

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

LGTM

@danielrbradley danielrbradley added this pull request to the merge queue Aug 29, 2024
@danielrbradley danielrbradley removed this pull request from the merge queue due to a manual request Aug 29, 2024
@danielrbradley danielrbradley added this pull request to the merge queue Aug 29, 2024
Merged via the queue into master with commit 9692823 Aug 29, 2024
6 checks passed
@danielrbradley danielrbradley deleted the fix-golangci-lint-warnings branch August 29, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants