Skip to content

feat: enable revive linter (backport #2232) - #2648

Closed
mergify[bot] wants to merge 1 commit into
v1.xfrom
mergify/bp/v1.x/pr-2232
Closed

mergify[bot] wants to merge 1 commit into
v1.xfrom
mergify/bp/v1.x/pr-2232

Conversation

@mergify

@mergify mergify Bot commented Mar 18, 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

This is an automatic backport of pull request #2232 done by [Mergify](https://mergify.com).

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 requested a review from a team as a code owner March 18, 2024 06:40
@mergify
mergify Bot requested a review from a team March 18, 2024 06:40
@mergify mergify Bot added the conflicts label Mar 18, 2024
@mergify

mergify Bot commented Mar 18, 2024

Copy link
Copy Markdown
Contributor Author

Cherry-pick of 9f457fc has failed:

On branch mergify/bp/v1.x/pr-2232
Your branch is up to date with 'origin/v1.x'.

You are currently cherry-picking commit 9f457fc48.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   .golangci.yml
	modified:   .pre-commit-config.yaml
	modified:   abci/client/client.go
	modified:   abci/client/grpc_client.go
	modified:   abci/client/local_client.go
	modified:   abci/client/socket_client.go
	modified:   abci/client/unsync_local_client.go
	modified:   abci/cmd/abci-cli/abci-cli.go
	modified:   abci/example/kvstore/kvstore.go
	modified:   abci/server/grpc_server.go
	modified:   abci/server/socket_server.go
	modified:   abci/types/application.go
	modified:   abci/types/messages.go
	modified:   abci/types/pubkey.go
	modified:   abci/types/util.go
	modified:   api/cometbft/abci/v1/types.go
	modified:   api/cometbft/abci/v1beta1/types.go
	modified:   api/cometbft/abci/v1beta2/types.go
	modified:   api/cometbft/abci/v1beta3/types.go
	modified:   api/go.mod
	modified:   api/go.sum
	modified:   cmd/cometbft/commands/compact.go
	modified:   cmd/cometbft/commands/debug/io.go
	modified:   cmd/cometbft/commands/reindex_event.go
	modified:   cmd/cometbft/commands/reindex_event_test.go
	modified:   cmd/cometbft/commands/reset.go
	modified:   cmd/cometbft/commands/rollback.go
	modified:   cmd/cometbft/commands/root.go
	modified:   cmd/cometbft/commands/root_test.go
	modified:   cmd/cometbft/commands/run_node.go
	modified:   cmd/cometbft/commands/version.go
	modified:   config/config.go
	modified:   config/toml.go
	modified:   crypto/ed25519/ed25519.go
	modified:   crypto/merkle/proof.go
	modified:   crypto/merkle/proof_op.go
	modified:   crypto/merkle/proof_test.go
	modified:   crypto/merkle/types.go
	modified:   crypto/secp256k1/secp256k1.go
	modified:   crypto/secp256k1/secp256k1_internal_test.go
	modified:   crypto/secp256k1/secp256k1_test.go
	modified:   crypto/sr25519/privkey.go
	modified:   crypto/sr25519/pubkey.go
	modified:   crypto/tmhash/hash.go
	modified:   crypto/xchacha20poly1305/xchachapoly.go
	modified:   docs/references/architecture/tendermint-core/adr-006-trust-metric.md
	modified:   internal/async/async.go
	modified:   internal/async/async_test.go
	modified:   internal/autofile/autofile.go
	modified:   internal/autofile/cmd/logjack.go
	modified:   internal/autofile/group.go
	modified:   internal/blocksync/pool.go
	modified:   internal/blocksync/pool_test.go
	modified:   internal/blocksync/reactor.go
	modified:   internal/blocksync/reactor_test.go
	modified:   internal/clist/clist.go
	modified:   internal/clist/clist_test.go
	modified:   internal/cmap/cmap.go
	modified:   internal/consensus/byzantine_test.go
	modified:   internal/consensus/common_test.go
	modified:   internal/consensus/invalid_test.go
	modified:   internal/consensus/pbts_test.go
	modified:   internal/consensus/reactor.go
	modified:   internal/consensus/reactor_test.go
	modified:   internal/consensus/replay.go
	modified:   internal/consensus/replay_stubs.go
	modified:   internal/consensus/replay_test.go
	modified:   internal/consensus/state.go
	modified:   internal/consensus/state_test.go
	modified:   internal/consensus/ticker.go
	modified:   internal/consensus/types/height_vote_set.go
	modified:   internal/consensus/types/peer_round_state.go
	modified:   internal/consensus/types/round_state.go
	modified:   internal/consensus/wal.go
	modified:   internal/consensus/wal_generator.go
	modified:   internal/events/event_cache_test.go
	modified:   internal/events/events.go
	modified:   internal/events/events_test.go
	modified:   internal/evidence/reactor.go
	modified:   internal/evidence/reactor_test.go
	modified:   internal/evidence/verify.go
	modified:   internal/evidence/verify_test.go
	modified:   internal/flowrate/flowrate.go
	modified:   internal/flowrate/io.go
	modified:   internal/flowrate/io_test.go
	modified:   internal/indexer/indexer_utils.go
	modified:   internal/net/net.go
	modified:   internal/os/os.go
	modified:   internal/progressbar/progressbar.go
	modified:   internal/protoio/io.go
	modified:   internal/pubsub/pubsub.go
	modified:   internal/pubsub/pubsub_test.go
	modified:   internal/pubsub/query/query.go
	modified:   internal/pubsub/subscription.go
	modified:   internal/rand/random.go
	modified:   internal/service/service.go
	modified:   internal/state/execution.go
	modified:   internal/state/helpers_test.go
	modified:   internal/state/indexer/block/kv/kv.go
	modified:   internal/state/indexer/block/null/null.go
	modified:   internal/state/indexer/query_range.go
	modified:   internal/state/indexer/sink/psql/backport.go
	modified:   internal/state/indexer/sink/psql/psql.go
	modified:   internal/state/services.go
	modified:   internal/state/state.go
	modified:   internal/state/state_test.go
	modified:   internal/state/txindex/indexer_service.go
	modified:   internal/state/txindex/kv/kv.go
	modified:   internal/state/txindex/null/null.go
	modified:   internal/state/validation.go
	modified:   internal/statesync/reactor.go
	modified:   internal/statesync/reactor_test.go
	modified:   internal/statesync/syncer_test.go
	modified:   internal/store/store.go
	modified:   internal/store/store_test.go
	modified:   internal/tempfile/tempfile_test.go
	modified:   libs/cli/setup_test.go
	modified:   libs/json/decoder.go
	modified:   libs/json/decoder_test.go
	modified:   libs/json/encoder.go
	modified:   libs/json/encoder_test.go
	modified:   libs/json/helpers_test.go
	modified:   libs/json/types.go
	modified:   libs/log/cmtfmt_logger.go
	modified:   libs/log/cmtfmt_logger_test.go
	modified:   libs/log/filter.go
	modified:   libs/log/lazy.go
	modified:   libs/log/logger.go
	modified:   libs/log/nop_logger.go
	modified:   libs/log/testing_logger.go
	modified:   libs/log/tm_logger.go
	modified:   libs/log/tracing_logger.go
	modified:   libs/math/math.go
	modified:   light/client.go
	modified:   light/detector.go
	modified:   light/provider/mock/deadmock.go
	modified:   light/proxy/routes.go
	modified:   light/rpc/client.go
	modified:   mempool/clist_mempool.go
	modified:   mempool/clist_mempool_test.go
	modified:   mempool/mempool.go
	modified:   mempool/nop_mempool.go
	modified:   mempool/reactor_test.go
	modified:   node/node.go
	modified:   node/setup.go
	modified:   p2p/base_reactor.go
	modified:   p2p/conn/connection.go
	modified:   p2p/conn/connection_test.go
	modified:   p2p/conn/evil_secret_connection_test.go
	modified:   p2p/conn/secret_connection.go
	modified:   p2p/conn/secret_connection_test.go
	modified:   p2p/errors.go
	modified:   p2p/key.go
	modified:   p2p/key_test.go
	modified:   p2p/metrics.go
	modified:   p2p/mock/peer.go
	modified:   p2p/mock/reactor.go
	modified:   p2p/netaddress.go
	modified:   p2p/node_info.go
	modified:   p2p/peer.go
	modified:   p2p/peer_set.go
	modified:   p2p/peer_set_test.go
	modified:   p2p/peer_test.go
	modified:   p2p/pex/addrbook.go
	modified:   p2p/pex/addrbook_test.go
	modified:   p2p/pex/errors.go
	modified:   p2p/pex/pex_reactor.go
	modified:   p2p/pex/pex_reactor_test.go
	modified:   p2p/switch.go
	modified:   p2p/switch_test.go
	modified:   p2p/test_util.go
	modified:   p2p/transport.go
	modified:   p2p/transport_test.go
	modified:   privval/errors.go
	modified:   privval/file.go
	modified:   privval/retry_signer_client.go
	modified:   privval/signer_client.go
	modified:   privval/signer_endpoint.go
	modified:   privval/socket_listeners.go
	modified:   privval/socket_listeners_test.go
	modified:   proto/cometbft/abci/v1/types.proto
	modified:   proto/cometbft/abci/v1beta1/types.proto
	modified:   proto/cometbft/abci/v1beta2/types.proto
	modified:   proto/cometbft/abci/v1beta3/types.proto
	modified:   proto/tendermint/abci/types.proto
	modified:   proxy/app_conn.go
	modified:   proxy/client.go
	modified:   rpc/client/http/http.go
	modified:   rpc/client/mock/client.go
	modified:   rpc/client/mocks/client.go
	modified:   rpc/core/blocks.go
	modified:   rpc/core/env.go
	modified:   rpc/core/health.go
	modified:   rpc/core/mempool.go
	modified:   rpc/core/net_test.go
	modified:   rpc/core/types/responses.go
	modified:   rpc/grpc/client/privileged/pruning_service.go
	modified:   rpc/grpc/server/services/blockservice/service.go
	modified:   rpc/grpc/server/services/pruningservice/service.go
	modified:   rpc/grpc/server/services/versionservice/service.go
	modified:   rpc/jsonrpc/client/args_test.go
	modified:   rpc/jsonrpc/client/decode.go
	modified:   rpc/jsonrpc/client/encode.go
	modified:   rpc/jsonrpc/client/http_json_client.go
	modified:   rpc/jsonrpc/client/http_json_client_test.go
	modified:   rpc/jsonrpc/client/http_uri_client.go
	modified:   rpc/jsonrpc/client/ws_client.go
	modified:   rpc/jsonrpc/client/ws_client_test.go
	modified:   rpc/jsonrpc/jsonrpc_test.go
	modified:   rpc/jsonrpc/server/http_json_handler.go
	modified:   rpc/jsonrpc/server/http_json_handler_test.go
	modified:   rpc/jsonrpc/server/http_server_test.go
	modified:   rpc/jsonrpc/server/http_uri_handler.go
	modified:   rpc/jsonrpc/server/parse_test.go
	modified:   rpc/jsonrpc/server/rpc_func.go
	modified:   rpc/jsonrpc/server/ws_handler.go
	modified:   rpc/jsonrpc/server/ws_handler_test.go
	modified:   rpc/jsonrpc/types/types.go
	modified:   rpc/jsonrpc/types/types_test.go
	modified:   rpc/test/helpers.go
	modified:   scripts/metricsgen/metricsdiff/metricsdiff_test.go
	modified:   scripts/metricsgen/metricsgen.go
	modified:   scripts/metricsgen/metricsgen_test.go
	modified:   test/e2e/app/app.go
	modified:   test/e2e/generator/generate.go
	modified:   test/e2e/generator/main.go
	modified:   test/e2e/generator/random.go
	modified:   test/e2e/generator/random_test.go
	modified:   test/e2e/pkg/grammar/checker.go
	modified:   test/e2e/pkg/grammar/grammar-auto/parser/bsr/bsr.go
	modified:   test/e2e/pkg/grammar/grammar-auto/sppf/sppf.go
	modified:   test/e2e/pkg/infra/digitalocean/digitalocean.go
	modified:   test/e2e/pkg/infra/docker/docker.go
	modified:   test/e2e/pkg/testnet.go
	modified:   test/e2e/runner/benchmark.go
	modified:   test/e2e/runner/load.go
	modified:   test/e2e/runner/main.go
	modified:   test/e2e/runner/setup.go
	modified:   test/e2e/tests/e2e_test.go
	modified:   test/fuzz/tests/mempool_test.go
	modified:   test/fuzz/tests/p2p_secretconnection_test.go
	modified:   test/fuzz/tests/rpc_jsonrpc_server_test.go
	modified:   test/loadtime/cmd/load/main.go
	modified:   test/loadtime/payload/payload.go
	modified:   types/block.go
	modified:   types/block_test.go
	modified:   types/canonical.go
	modified:   types/encoding_helper.go
	modified:   types/event_bus.go
	modified:   types/events.go
	modified:   types/evidence.go
	modified:   types/evidence_test.go
	modified:   types/genesis.go
	modified:   types/light.go
	modified:   types/part_set.go
	modified:   types/part_set_test.go
	modified:   types/priv_validator.go
	modified:   types/proposal_test.go
	modified:   types/protobuf.go
	modified:   types/test_util.go
	modified:   types/time/time.go
	modified:   types/utils.go
	modified:   types/validation.go
	modified:   types/validator.go
	modified:   types/validator_set.go
	modified:   types/validator_set_test.go
	modified:   types/vote_set.go
	modified:   types/vote_test.go

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	both modified:   internal/evidence/pool.go
	both modified:   internal/state/export_test.go
	both modified:   internal/state/store.go
	deleted by us:   light/store/db/db_key_layout.go
	both modified:   rpc/jsonrpc/server/http_server.go

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@melekes

melekes commented Mar 18, 2024

Copy link
Copy Markdown
Collaborator

@mergify rebase

@mergify

mergify Bot commented Mar 18, 2024

Copy link
Copy Markdown
Contributor Author

rebase

❌ Unable to rebase: user melekes is unknown.

Details

Please make sure melekes has logged in Mergify dashboard.

@melekes

melekes commented Mar 18, 2024

Copy link
Copy Markdown
Collaborator

@mergify rebase

@mergify

mergify Bot commented Mar 18, 2024

Copy link
Copy Markdown
Contributor Author

rebase

❌ Base branch update has failed

Details

Git reported the following error:

Rebasing (1/1)
Auto-merging cmd/cometbft/commands/rollback.go
Auto-merging config/config.go
Auto-merging config/toml.go
Auto-merging internal/evidence/pool.go
CONFLICT (content): Merge conflict in internal/evidence/pool.go
Auto-merging internal/state/export_test.go
CONFLICT (content): Merge conflict in internal/state/export_test.go
Auto-merging internal/state/store.go
CONFLICT (content): Merge conflict in internal/state/store.go
Auto-merging internal/store/store.go
Auto-merging internal/store/store_test.go
Auto-merging light/store/db/db_key_layout.go
CONFLICT (add/add): Merge conflict in light/store/db/db_key_layout.go
Auto-merging node/node.go
Auto-merging node/setup.go
Auto-merging test/e2e/pkg/testnet.go
Auto-merging test/e2e/runner/setup.go
error: could not apply 7fc45867... feat: enable revive linter (#2232)
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply 7fc45867... feat: enable revive linter (#2232)

@melekes

melekes commented Mar 18, 2024

Copy link
Copy Markdown
Collaborator

@mergify recreate

@mergify

mergify Bot commented Mar 18, 2024

Copy link
Copy Markdown
Contributor Author

recreate

❌ Sorry but I didn't understand the command. Please consult the commands documentation 📚.

@melekes melekes closed this Mar 18, 2024
@melekes
melekes deleted the mergify/bp/v1.x/pr-2232 branch March 18, 2024 07:04
@mergify mergify Bot mentioned this pull request Mar 18, 2024
2 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants