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(lint-ci): Removing golang-lint govet deprecated parameter #1359

Merged
merged 4 commits into from
Feb 18, 2025

Conversation

apontejaj
Copy link
Contributor

@apontejaj apontejaj commented Feb 17, 2025

Description

After deps: bump github.com/golangci/golangci-lint from 1.64.2 to 1.64.5 in /hack/tools, all PR started failing the golangci-lint workflow.
This PR removes a parameter that has been deprecated by golanci-lint.

Related Issue

No issue created.

Checklist

  • I have read the contributing documentation.
  • I signed and signed-off the commits (git commit -S -s ...). See this documentation on signing commits.
  • I have correctly attributed the author(s) of the code.
  • I have tested the changes locally.
  • I have followed the project's style guidelines.
  • I have updated the documentation, if necessary.
  • I have added tests, if applicable.

Screenshots (if applicable) or Testing Completed

See workflow below.
image

Additional Notes

Syntax updated as per golang-lint documentation
https://golangci-lint.run/usage/linters/#govet
image

image

https://github.com/golangci/golangci-lint/blob/a8b68a590a88bbde93b27f8bf02031cb1db78b2b/pkg/config/loader.go#L402-L407
image


Please refer to the CONTRIBUTING.md file for more information on how to contribute to this project.

@apontejaj apontejaj requested a review from a team as a code owner February 17, 2025 12:12
@apontejaj apontejaj changed the title fix(lint-ci): Removing golint deprecated parameter fix(lint-ci): Removing golang-lint govet deprecated parameter Feb 17, 2025
@timraymond
Copy link
Member

Your deep link to the docs appears broken. Can you quote the section in a comment to understand what these options do, and why this is the correct new configuration?

SRodi
SRodi previously approved these changes Feb 17, 2025
Copy link
Member

@SRodi SRodi left a comment

Choose a reason for hiding this comment

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

@apontejaj
Copy link
Contributor Author

Your deep link to the docs appears broken. Can you quote the section in a comment to understand what these options do, and why this is the correct new configuration?

Link fixed in description.
Also, Simone added a second link.

@apontejaj apontejaj added this pull request to the merge queue Feb 17, 2025
@apontejaj apontejaj removed this pull request from the merge queue due to a manual request Feb 17, 2025
@apontejaj
Copy link
Contributor Author

@timraymond
Just waiting for you to confirm you're satisfied with the new configuration after the links have been provided..

@apontejaj apontejaj requested a review from timraymond February 17, 2025 14:49
@ibezrukavyi ibezrukavyi added this pull request to the merge queue Feb 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 18, 2025
@apontejaj apontejaj added this pull request to the merge queue Feb 18, 2025
Merged via the queue into microsoft:main with commit c1c2ea2 Feb 18, 2025
28 checks passed
@apontejaj apontejaj deleted the amilcara/lint branch February 18, 2025 22:52
BeegiiK pushed a commit to BeegiiK/retina that referenced this pull request Feb 28, 2025
…oft#1359)

# Description

After [deps: bump github.com/golangci/golangci-lint from 1.64.2 to
1.64.5 in
/hack/tools](microsoft@f4d8f16),
all PR started failing the golangci-lint workflow.
This PR removes a parameter that has been deprecated by golanci-lint.

## Related Issue

No issue created.

## Checklist

- [X] I have read the [contributing
documentation](https://retina.sh/docs/Contributing/overview).
- [X] I signed and signed-off the commits (`git commit -S -s ...`). See
[this
documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
on signing commits.
- [X] I have correctly attributed the author(s) of the code.
- [X] I have tested the changes locally.
- [X] I have followed the project's style guidelines.
- [ ] I have updated the documentation, if necessary.
- [ ] I have added tests, if applicable.

## Screenshots (if applicable) or Testing Completed

See workflow below.

![image](https://github.com/user-attachments/assets/c1b0021d-5c02-4b21-bddd-e09171c91736)

## Additional Notes

Syntax updated as per golang-lint documentation
https://golangci-lint.run/usage/linters/#govet

![image](https://github.com/user-attachments/assets/f4e96ce2-7694-4dd6-b7bf-59be1767e271)


![image](https://github.com/user-attachments/assets/a0da406b-36d9-48f1-9dbf-a8a0824b0efb)


https://github.com/golangci/golangci-lint/blob/a8b68a590a88bbde93b27f8bf02031cb1db78b2b/pkg/config/loader.go#L402-L407

![image](https://github.com/user-attachments/assets/75eea0c1-1b19-468d-a511-35db13c0bd9e)

---

Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more
information on how to contribute to this project.
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.

4 participants