-
Notifications
You must be signed in to change notification settings - Fork 622
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
Applying linting rules #354
Conversation
Codecov Report
@@ Coverage Diff @@
## main #354 +/- ##
==========================================
- Coverage 54.36% 54.18% -0.17%
==========================================
Files 102 102
Lines 5013 5013
==========================================
- Hits 2725 2716 -9
- Misses 2039 2044 +5
- Partials 249 253 +4
Continue to review full report at Codecov.
|
These all look great, thank you @teivah for contributing these changes! The only thing is, we shouldn't lint code at We do have an exclude in Makefile. Did you use revive / go lint manually to find these lint errors? I'm just trying to think how we can help people find out about the reason we don't lint code in |
Thank you @teivah! it looks great, merging. |
Thanks @petethepig
Alright, reverted 👍 Regarding linting, I wasn't aware about
|
@teivah ahh, I see, yeah, that makes sense. |
…mestamp Set timestamp in profile, if not set
Applying a bunch of linting rules:
boolean == true
=>boolean
bytes.Compare(a, b) == 0
=>bytes.Equal(a, b)
time.Now().Sub(t)
=>time.Since(t)
fmt.Sprintf
Also, one bug fix where this break was breaking the
select
, not thefor
loopPlease let me know what you guys think about it.