-
Notifications
You must be signed in to change notification settings - Fork 129
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
Continue fixing golint errors [T708] #221
Conversation
@@ -83,7 +91,7 @@ func (hp HashedPasswords) SetPassword(name, password string) (err error) { | |||
return nil | |||
} | |||
|
|||
func ParseHtpasswdFile(file string, keystore *filesystem.FilesystemKeyStore) (passwords HashedPasswords, err error) { | |||
func parseHtpasswdFile(file string, keystore *filesystem.FilesystemKeyStore) (passwords HashedPasswords, err error) { |
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.
change to private because used only in this module?
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.
yes
cmd/acra-server/acra-server.go
Outdated
const ( | ||
TEST_MODE = "true" | ||
) | ||
|
||
var TestOnly = "false" | ||
var testOnly = "false" |
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.
this variable used on compile time to set test mode - https://github.com/cossacklabs/acra/blob/master/tests/test.py#L292
is it work after renaming and changing to private?
@@ -8,7 +8,7 @@ import ( | |||
type TestCallback struct{ CallCount *int } | |||
|
|||
func (callback *TestCallback) Call() error { | |||
*callback.CallCount += 1 |
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.
python style vs golang style))
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.
check and update variable name of main.TestOnly in tests/test.py
that's might be the reason of failing tests. thank you |
awesome results) well done :) |
Fixes include:
Errors number decreased from 788 to 512.