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

Lint Galore #281

Merged
merged 3 commits into from
Aug 16, 2019
Merged

Lint Galore #281

merged 3 commits into from
Aug 16, 2019

Conversation

tac0turtle
Copy link
Contributor

@tac0turtle tac0turtle commented Aug 6, 2019

  • added gosimple, deadcode, structcheck, interfacer, unconvert, goconst, lll, scopelint, stylechcek

ref #258

Signed-off-by: Marko Baricevic marbar3778@yahoo.com

- added a few linters

ref #258

Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>
@tac0turtle tac0turtle marked this pull request as ready for review August 6, 2019 14:59
encoder_test.go Outdated Show resolved Hide resolved
encoder_test.go Outdated Show resolved Hide resolved
encoder_test.go Outdated Show resolved Hide resolved
@@ -260,7 +260,7 @@ func TestUnmarshalJSON(t *testing.T) {
},
{ // #9
`[1, "2", ["foo", "bar"]]`,
new([]interface{}), nil, "Unregistered",
new([]interface{}), nil, "unregistered interface interface {}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure Unregistered == unregistered interface interface {}?

@@ -43,7 +43,7 @@ func TestMarshalJSON(t *testing.T) {
{&oneExportedField{A: "Z"}, `{"A":"Z"}`, ""}, // #6
{[]string{"a", "bc"}, `["a","bc"]`, ""}, // #7
{[]interface{}{"a", "bc", 10, 10.93, 1e3},
``, "Unregistered"}, // #8
``, "unregistered"}, // #8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about this place?

Unregistered == unregistered interface interface {}?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct because the error is now lowercase and not capitalized

Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com>
@tac0turtle tac0turtle merged commit 9dc1454 into master Aug 16, 2019
@tac0turtle tac0turtle deleted the marko/lint-galore branch August 16, 2019 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants