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

*: disable intrange linter #3282

Merged
merged 1 commit into from
Sep 18, 2024
Merged

*: disable intrange linter #3282

merged 1 commit into from
Sep 18, 2024

Conversation

gsora
Copy link
Collaborator

@gsora gsora commented Sep 12, 2024

Go v1.23 allows to range over int slices without calling len first.

Since it's a low-importance change, we can disable intrange linter to avoid being blocked by it during pre-commit.

category: misc
ticket: none

Go v1.23 allows to range over int slices without calling `len` first.

Since it's a low-importance change, we can disable intrange linter to avoid being blocked by it during pre-commit.
Copy link

sonarcloud bot commented Sep 12, 2024

@KaloyanTanev
Copy link
Contributor

I think I have updated all the places where this happens, so linter doesn't complain on any of the old code?

@gsora
Copy link
Collaborator Author

gsora commented Sep 12, 2024

Weird, I have it complaining on my (unrelated) PR, complaining about validatorapi 🤔

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.66%. Comparing base (6eb8442) to head (7517a9f).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3282      +/-   ##
==========================================
+ Coverage   57.63%   57.66%   +0.02%     
==========================================
  Files         211      211              
  Lines       30418    30420       +2     
==========================================
+ Hits        17532    17541       +9     
+ Misses      10997    10991       -6     
+ Partials     1889     1888       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gsora gsora added the merge when ready Indicates bulldozer bot may merge when all checks pass label Sep 18, 2024
@obol-bulldozer obol-bulldozer bot merged commit a53651c into main Sep 18, 2024
12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the gsora/disable-intrange branch September 18, 2024 15:03
gsora added a commit that referenced this pull request Sep 18, 2024
Go v1.23 allows to range over int slices without calling `len` first.

Since it's a low-importance change, we can disable intrange linter to avoid being blocked by it during pre-commit.

category: misc
ticket: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants