Closed kobakaku closed 1 month ago
.golangci.yml (3)
Line range hint `1-22`: **Confirmation: No additional changes required** I've reviewed the entire file, and I can confirm that no other sections require updates due to the linter change. The `run` section and the `linters-settings` for `nakedret` remain relevant and do not conflict with the new `copyloopvar` linter. --- Line range hint `1-22`: **Summary: Successful update of linter configuration** The changes made to `.golangci.yml` successfully address the PR objectives by replacing the deprecated `exportloopref` linter with the recommended `copyloopvar` linter. This update ensures compatibility with Go 1.22 and later versions, resolving the deprecation warning mentioned in issue #3918. The modification is minimal and focused, affecting only the necessary part of the configuration. The linting process should now run without warnings related to deprecated linters, maintaining the project's code quality and compliance with the latest Go standards. --- `7-7`: **LGTM: Correct replacement of deprecated linter** The addition of `copyloopvar` to replace the deprecated `exportloopref` linter is correct and aligns with the PR objectives. This change addresses the deprecation warning and ensures compatibility with Go 1.22 and later versions. To ensure the change is complete, let's verify that `exportloopref` has been completely removed:✅ Verification successful
**LGTM: Deprecated linter successfully removed** The removal of `exportloopref` from `.golangci.yml` has been successfully verified. This change aligns with the PR objectives and ensures compatibility with Go 1.22 and later versions.🏁 Scripts executed
The following scripts were executed for the analysis: Script: ```shell #!/bin/bash # Description: Verify that 'exportloopref' is not present in the .golangci.yml file if grep -q "exportloopref" .golangci.yml; then echo "Warning: 'exportloopref' is still present in .golangci.yml" else echo "Verification passed: 'exportloopref' has been completely removed" fi ``` Length of output: 182
Closes https://github.com/celestiaorg/celestia-app/issues/3918
Overview
Replase loopvar linter in the .golangci.yml.
TODO
Fix the lint error. This issue needs to address the lint errors.
Test