Skip to content

Fix recent revive failures#755

Merged
mergify[bot] merged 2 commits intoceph:masterfrom
phlogistonjohn:jjm-doc-pkg
Aug 12, 2022
Merged

Fix recent revive failures#755
mergify[bot] merged 2 commits intoceph:masterfrom
phlogistonjohn:jjm-doc-pkg

Conversation

@phlogistonjohn
Copy link
Collaborator

@phlogistonjohn phlogistonjohn commented Aug 10, 2022

With the newest version of revive there appears to be no way to have it both check all .go files individually and have it properly detect the package-comments rule.

I took the lazy way out and simply disabled the rule in the config file rather than try to do something more complicated.

Fixes: #754

@phlogistonjohn phlogistonjohn changed the title Thouroughly document packages Fix recent revive failures Aug 10, 2022
@phlogistonjohn phlogistonjohn marked this pull request as ready for review August 10, 2022 18:01
@phlogistonjohn phlogistonjohn added the no-API This PR does not include any changes to the public API of a go-ceph package label Aug 10, 2022
Copy link
Collaborator

@anoopcs9 anoopcs9 left a comment

Choose a reason for hiding this comment

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

Fair enough.
See below for a typo 😛

A recent change in revive broke the package-comments rule when .go files
are input individually.
(see mgechev/revive#694)

See the comment within for more info.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Copy link
Collaborator

@anoopcs9 anoopcs9 left a comment

Choose a reason for hiding this comment

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

lgtm, thanks.

@mergify mergify bot merged commit 0660d68 into ceph:master Aug 12, 2022
@phlogistonjohn phlogistonjohn deleted the jjm-doc-pkg branch August 15, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-API This PR does not include any changes to the public API of a go-ceph package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make check fails in CI

2 participants