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

bazel: run returncheck lint in nogo #80263

Merged
merged 1 commit into from
Apr 26, 2022
Merged

Conversation

rickystewart
Copy link
Collaborator

Unfortunately returncheck is not implemented as an Analyzer so it
can't be integrated with nogo directly. Instead I've copied/adapted
the existing code from https://github.com/cockroachdb/returncheck. The
vendored returncheck can be deleted from tree when we no longer need
to support make lint.

Closes #73391.

Release note: None

@rickystewart rickystewart requested a review from a team as a code owner April 20, 2022 19:11
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rickystewart
Copy link
Collaborator Author

cc @jordanlewis

@rickystewart rickystewart force-pushed the returncheck branch 3 times, most recently from a37bd01 to 8ba8a63 Compare April 20, 2022 20:03
@rickystewart rickystewart requested a review from a team as a code owner April 20, 2022 20:03
Unfortunately `returncheck` is not implemented as an `Analyzer` so it
can't be integrated with `nogo` directly. Instead I've copied/adapted
the existing code from https://github.com/cockroachdb/returncheck. The
vendored `returncheck` can be deleted from tree when we no longer need
to support `make lint`.

Closes cockroachdb#73391.

Release note: None
Copy link
Member

@rail rail left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @mari-crl)

@rickystewart
Copy link
Collaborator Author

TFTR!

bors r=rail

@craig
Copy link
Contributor

craig bot commented Apr 26, 2022

Build succeeded:

@craig craig bot merged commit 8944fd0 into cockroachdb:master Apr 26, 2022
@rickystewart
Copy link
Collaborator Author

blathers backport 22.1.0

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.

bazel: returncheck should run in nogo
3 participants