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

[testing] Update golangci-lint to latest version #3617

Merged
merged 13 commits into from
Dec 30, 2024

Conversation

marun
Copy link
Contributor

@marun marun commented Dec 21, 2024

Updates golangci-lint to latest version.

TODO

  • Resolve lint failures

How this was tested

CI

Need to be documented in RELEASES.md?

N/A

@marun marun added the testing This primarily focuses on testing label Dec 21, 2024
@marun marun self-assigned this Dec 21, 2024
.golangci.yml Show resolved Hide resolved
utils/hashing/hashing.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
vms/avm/service_test.go Outdated Show resolved Hide resolved
vms/avm/service_test.go Outdated Show resolved Hide resolved
vms/platformvm/service_test.go Outdated Show resolved Hide resolved
vms/platformvm/txs/convert_subnet_to_l1_tx_test.go Outdated Show resolved Hide resolved
vms/platformvm/txs/disable_l1_validator_tx_test.go Outdated Show resolved Hide resolved
vms/platformvm/txs/register_l1_validator_tx_test.go Outdated Show resolved Hide resolved
vms/platformvm/txs/set_l1_validator_weight_tx_test.go Outdated Show resolved Hide resolved
@marun marun force-pushed the update-lint-version branch from 3809bfe to cb25e24 Compare December 27, 2024 22:14
@marun marun marked this pull request as ready for review December 27, 2024 22:17
@@ -128,6 +128,7 @@ linters-settings:
gosec:
excludes:
- G107 # Url provided to HTTP request as taint input https://securego.io/docs/rules/g107
- G115 # TODO(marun) Enable this ruleset in a follow-up PR
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added issue to track enabling G115: #3624

utils/hashing/hashing.go Outdated Show resolved Hide resolved
@@ -67,8 +67,6 @@ func (c *Client) Apply(requests map[ids.ID]*atomic.Requests, batches ...database
Batches: make([]*sharedmemorypb.Batch, len(batches)),
}
for key, value := range requests {
key := key
Copy link
Contributor

Choose a reason for hiding this comment

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

RIP reference bug

Copy link
Contributor

@yacovm yacovm left a comment

Choose a reason for hiding this comment

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

LGTM modulo comment on ripemd

@marun marun force-pushed the update-lint-version branch from 94b2e7f to 01568af Compare December 30, 2024 01:32
@marun
Copy link
Contributor Author

marun commented Dec 30, 2024

Rebased

@StephenButtolph StephenButtolph added this pull request to the merge queue Dec 30, 2024
Merged via the queue into master with commit 8fb6237 Dec 30, 2024
22 checks passed
@StephenButtolph StephenButtolph deleted the update-lint-version branch December 30, 2024 02:03
tsachiherman pushed a commit that referenced this pull request Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing This primarily focuses on testing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants