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

Fix golint for types & functions need comment #153

Merged
merged 1 commit into from
Jul 24, 2018
Merged

Conversation

sufuf3
Copy link
Contributor

@sufuf3 sufuf3 commented Jul 23, 2018

golint is 49%, now.
This PR is for fixing golint.

@sufuf3 sufuf3 force-pushed the sufuf3/fix-goreport branch from 18a2de4 to 180b050 Compare July 23, 2018 11:20
@sufuf3 sufuf3 force-pushed the sufuf3/fix-goreport branch from 180b050 to 087f222 Compare July 24, 2018 03:52
@sufuf3 sufuf3 changed the title [WIP] Fix golint for types & functions need comment Fix golint for types & functions need comment Jul 24, 2018
@sufuf3
Copy link
Contributor Author

sufuf3 commented Jul 24, 2018

還有變數名稱的問題,但因為可能會牽涉使用這些變數的 code ,所以這隻 PR 暫時不修改。

$ golint src/*
src/networkcontroller/network_controller.go:13:7: don't use ALL_CAPS in Go names; use CamelCase
src/networkprovider/ovs_netdev_test.go:24:7: don't use ALL_CAPS in Go names; use CamelCase
src/networkprovider/ovs_system_test.go:25:7: don't use ALL_CAPS in Go names; use CamelCase
src/prometheusprovider/promehteus.go:11:2: struct field Url should be URL
src/prometheusprovider/promehteus.go:16:2: struct field Url should be URL
src/server/response.go:20:2: struct field SignInUrl should be SignInURL

@codecov-io
Copy link

codecov-io commented Jul 24, 2018

Codecov Report

Merging #153 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #153   +/-   ##
========================================
  Coverage    72.18%   72.18%           
========================================
  Files           42       42           
  Lines         1995     1995           
========================================
  Hits          1440     1440           
  Misses         479      479           
  Partials        76       76
Impacted Files Coverage Δ
src/prometheuscontroller/expression.go 84.81% <ø> (ø) ⬆️
src/net/http/responsetest/assert.go 100% <ø> (ø) ⬆️
src/serviceprovider/serviceprovider.go 0% <ø> (ø) ⬆️
src/storageprovider/fake.go 100% <ø> (ø) ⬆️
src/kubernetes/kubectl.go 100% <ø> (ø) ⬆️
src/kubernetes/deployment.go 85.71% <ø> (ø) ⬆️
src/server/autocert.go 0% <ø> (ø) ⬆️
src/prometheuscontroller/query.go 94.28% <ø> (ø) ⬆️
src/net/http/handler.go 100% <ø> (ø) ⬆️
src/storageprovider/storage.go 100% <ø> (ø) ⬆️
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1ab20a...087f222. Read the comment docs.

@John-Lin
Copy link
Contributor

我來改這個

@John-Lin John-Lin merged commit 55fb83b into develop Jul 24, 2018
@sufuf3 sufuf3 deleted the sufuf3/fix-goreport branch July 24, 2018 06:33
John-Lin added a commit that referenced this pull request Jul 25, 2018
Fix golint for types & functions need comment

Former-commit-id: 69ef6b2c6b3af55db7fb2634781e0b74a004edfe [formerly 55fb83b]
Former-commit-id: 8a268d0dee2c1a48873171f61d746c6dca1fb39f
John-Lin added a commit that referenced this pull request Jul 25, 2018
Fix golint for types & functions need comment

Former-commit-id: 69ef6b2c6b3af55db7fb2634781e0b74a004edfe [formerly 69ef6b2c6b3af55db7fb2634781e0b74a004edfe [formerly 55fb83b]]
Former-commit-id: 8a268d0dee2c1a48873171f61d746c6dca1fb39f
Former-commit-id: 0d5a568
John-Lin added a commit that referenced this pull request Jul 25, 2018
Fix golint for types & functions need comment
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