Skip to content

feat: enable revive linter - #2232

Merged
melekes merged 207 commits into
cometbft:mainfrom
faddat:faddat/revive-for-main
Mar 18, 2024
Merged

melekes merged 207 commits into
cometbft:mainfrom
faddat:faddat/revive-for-main

Conversation

@faddat

@faddat faddat commented Feb 4, 2024 •

Copy link
Copy Markdown
Contributor

This PR covers most of the linters mentioned in #2274.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments
  • Title follows the Conventional Commits spec

@melekes melekes 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.

108 / 274

Comment thread .golangci.yml Resolved
Comment thread .golangci.yml Resolved
Comment thread .pre-commit-config.yaml Resolved
Comment thread crypto/merkle/proof.go
case spn.Right != nil:
innerHashes = append(innerHashes, spn.Right.Hash)
default:
break

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.

need to investigate this

Comment thread internal/blocksync/pool.go Resolved

select {
case <-ctx.Done():
break

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.

need to investigate this

@melekes

melekes commented Mar 13, 2024

Copy link
Copy Markdown
Collaborator

@faddat please do not force-push again. otherwise it won't be possible to incrementally review changes

@melekes melekes 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.

275/275


select {
case <-ctx.Done():
break

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.

need to investigate this

Comment thread internal/state/store.go Resolved
Comment thread light/detector.go
switch err {
// no error means we move on to checking the hash of the two headers
case nil:
break

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.

need to investigate this

Comment thread test/e2e/runner/load.go
select {
case genCh <- struct{}{}:
case <-ctx.Done():
break

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.

need to investigate this

Comment thread test/e2e/tests/e2e_test.go Resolved
@faddat

faddat commented Mar 18, 2024

Copy link
Copy Markdown
Contributor Author

An earlier version of this PR contained changes similar to what you made on the "confusing-results" linter. That method works too.

@melekes melekes 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.

Thanks @faddat ❤️

@melekes melekes changed the title feat: revive linter for the main branch feat: enable revive linter Mar 18, 2024
@melekes
melekes added this pull request to the merge queue Mar 18, 2024
Merged via the queue into cometbft:main with commit 9f457fc Mar 18, 2024
mergify Bot pushed a commit that referenced this pull request Mar 18, 2024
This PR covers most of the linters mentioned in #2274.

---

#### PR checklist

- [x] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

---------

Co-authored-by: Anton Kaliaev <[email protected]>
Co-authored-by: Jacob Gadikian <[email protected]>
(cherry picked from commit 9f457fc)

# Conflicts:
#	internal/evidence/pool.go
#	internal/state/export_test.go
#	internal/state/store.go
#	light/store/db/db_key_layout.go
#	rpc/jsonrpc/server/http_server.go
@mergify mergify Bot mentioned this pull request Mar 18, 2024
2 of 4 tasks
@melekes

melekes commented Mar 18, 2024

Copy link
Copy Markdown
Collaborator

@mergify backport v1.x

@mergify

mergify Bot commented Mar 18, 2024

Copy link
Copy Markdown
Contributor

backport v1.x

✅ Backports have been created

Details

melekes added a commit that referenced this pull request Mar 18, 2024
This PR covers most of the linters mentioned in #2274.

---

- [x] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

---------

Co-authored-by: Anton Kaliaev <[email protected]>
Co-authored-by: Jacob Gadikian <[email protected]>
melekes added a commit that referenced this pull request Mar 18, 2024
Manual backport of #2232

---------

Co-authored-by: Jacob Gadikian <[email protected]>
Co-authored-by: Jacob Gadikian <[email protected]>
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