Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

FAB-16697 remove linters #13

Merged
merged 2 commits into from
Sep 27, 2019

Conversation

MHBauer
Copy link
Contributor

@MHBauer MHBauer commented Sep 24, 2019

go lint is not run. Remove go lint.

go fmt and goimports do the same thing. goimports is more powerful due
to import reordering, so rely only on goimports. Remove go fmt.

The build cache is not the build cache we use for building a binary,
so we end up building everything multiple times instead of using the
cache. Remove the cache definition.

go vet is intelligent and ignores the vendor directory on it's
own. Take it out of the loop and invoke it once at the top level.

Change-Id: Ieb057298f6ecd83b67607de29c24572a4c35018a
Signed-off-by: Morgan Bauer mbauer@us.ibm.com

go lint is not run. Remove go lint.

go fmt and goimports do the same thing. goimports is more powerful due
to import reordering, so rely only on goimports. Remove go fmt.

The build cache is not the build cache we use for building a binary,
so we end up building everything multiple times instead of using the
cache. Remove the cache definition.

go vet is intelligent and ignores the vendor directory on it's
own. Take it out of the loop and invoke it once at the top level.

Change-Id: Ieb057298f6ecd83b67607de29c24572a4c35018a
Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
@swetharepakula
Copy link
Contributor

swetharepakula commented Sep 27, 2019

Agree with removing gofmt, since goimports does the same thing.

Instead of removing golint, should we add it to the list? My understanding it is about code style and is different from go vet. Though our code probably does not pass golint in its current state.

@MHBauer
Copy link
Contributor Author

MHBauer commented Sep 27, 2019

I have mixed feelings on golint. Most of the work required right now is for "XYZ must have godoc" which I am not going to complete as part of this. We should make a JIRA.

FYI, golint is also not turned on in fabric core repo.

@MHBauer
Copy link
Contributor Author

MHBauer commented Sep 27, 2019

as an automated process, that branch update thing is terrible.

@MHBauer MHBauer merged commit 339bec8 into hyperledger-archives:master Sep 27, 2019
@MHBauer MHBauer deleted the cleanup-linters branch September 27, 2019 19:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants