Skip to content

[MAINT] enable nilnesserr linter - #3113

Merged
stevehipwell merged 3 commits into
integrations:mainfrom
F-Secure-web:enable-nilnesserror-linter
Feb 2, 2026
Merged

stevehipwell merged 3 commits into
integrations:mainfrom
F-Secure-web:enable-nilnesserror-linter

Conversation

@deiga

@deiga deiga commented Jan 22, 2026

Copy link
Copy Markdown
Collaborator

Before the change?

  • Code could be checking for if err != nil but return a different error

After the change?

  • Linter will mark that every checked error is being returned correctly

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@github-actions

Copy link
Copy Markdown

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@deiga deiga added the Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR label Jan 22, 2026
@deiga deiga added this to the v6.11.0 Release milestone Jan 25, 2026
@deiga
deiga requested a review from stevehipwell January 27, 2026 21:30

@stevehipwell stevehipwell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I like this idea, minor nits to fix.

FYI we still have a core linter disabled which need the code updating to re-enable it.

Comment thread .golangci.yml Resolved
Comment thread .golangci.yml Resolved
@deiga
deiga requested a review from stevehipwell January 28, 2026 15:45
@deiga

deiga commented Jan 28, 2026

Copy link
Copy Markdown
Collaborator Author

I like this idea, minor nits to fix.

FYI we still have a core linter disabled which need the code updating to re-enable it.

Yeah, I tried enabling it and was overwhelmed 😂

stevehipwell
stevehipwell previously approved these changes Jan 28, 2026

@stevehipwell stevehipwell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@deiga
deiga force-pushed the enable-nilnesserror-linter branch from a0503c4 to 1667d4e Compare January 29, 2026 22:00

@stevehipwell stevehipwell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@stevehipwell
stevehipwell merged commit 19e9e83 into integrations:main Feb 2, 2026
JiayangZhou pushed a commit to JiayangZhou/terraform-provider-github that referenced this pull request Apr 16, 2026
* Fix returning wrong `err`

Signed-off-by: Timo Sand <[email protected]>

* Add link to description of `nilnesserr` linter

Signed-off-by: Timo Sand <[email protected]>

* Revert formatting changes

---------

Signed-off-by: Timo Sand <[email protected]>
@deiga
deiga deleted the enable-nilnesserror-linter branch May 24, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants