-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
tsm1 meta lint #4460
tsm1 meta lint #4460
Conversation
cf7bf7f
to
487243a
Compare
You mention a Makefile, but I see no Makefile in the patch. Did you mean to add it? |
@@ -113,7 +113,7 @@ func TestEngine_WriteAndReadFloats(t *testing.T) { | |||
} | |||
tx.Rollback() | |||
|
|||
if err := e.Close(); err != nil { | |||
if err := e.Engine.Close(); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does it flag this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed Cleanup()
to Close()
on the test engine wrapper. There were tests that depended on calling the underlying Engine's Close()
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes, makes sense -- thanks.
Some nice cleanups. +1 on green. |
487243a
to
c27f8ae
Compare
The |
Overview
This pull request fixes a bunch of warnings reported by
gometalinter
. Thegometalinter
output was also excessive so I moved a subset of the functionality into aMakefile
with the following targets:Cyclomatic Complexity
Within
tsm1
, there 26 functions which have a cyclomatic complexity score higher than 10:Paul is currently in the compaction code but I think it'd be worth it to break that code up once he's done.