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

Go-Report-Card Fixes #30

Merged

Conversation

otaviof
Copy link
Member

@otaviof otaviof commented Jul 3, 2021

Changes

General fixes for go-report-card, typos and minor refactoring. Fixing the following alerts:

$ goreportcard-cli -v
2021/07/03 09:25:37 disabling misspell on large repo...
Grade: A+ (99.9%)
Files: 2043
Issues: 10
gofmt: 100%
go_vet: 100%
gocyclo: 99%
	pkg/shp/reactor/pod_watcher.go
		Line 59: warning: cyclomatic complexity 18 of function (*PodWatcher).Start() is high (> 15) (gocyclo)
golint: 99%
	pkg/shp/params/params.go
		Line 11: warning: comment on exported type Params should be of the form "Params ..." (with optional leading article) (golint)
		Line 53: warning: exported method Params.ClientSet should have comment or be unexported (golint)
	pkg/shp/flags/flags.go
		Line 13: warning: exported const BuildrefNameFlag should have comment (or a comment on this block) or be unexported (golint)
	pkg/shp/resource/doc.go
		Line 1: warning: package comment should be of the form "Package resource ..." (golint)
	pkg/shp/cmd/build/doc.go
		Line 1: warning: package comment should be of the form "Package build ..." (golint)
	pkg/shp/util/crud.go
		Line 43: warning: exported function UpdateObject should have comment or be unexported (golint)
	pkg/shp/util/doc.go
		Line 1: warning: package comment should be of the form "Package util ..." (golint)
	pkg/shp/resource/resource.go
		Line 51: warning: exported method Resource.Update should have comment or be unexported (golint)
		Line 94: warning: exported method Resource.Watch should have comment or be unexported (golint)
	pkg/shp/cmd/buildrun/buildrun.go
		Line 12: warning: exported function Command should have comment or be unexported (golint)
	pkg/shp/cmd/buildrun/doc.go
		Line 1: warning: package comment should be of the form "Package buildrun ..." (golint)
license: 100%
ineffassign: 100%
misspell: 100%

Submitter Checklist

  • Includes tests if functionality changed/was added
  • Includes docs if changes are user-facing
  • Set a kind label on this PR
  • Release notes block has been filled in, or marked NONE

Release Notes

NONE

@otaviof otaviof added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Jul 3, 2021
General fixes for go-report-card, typos and minor refactoring.
@gabemontero
Copy link
Member

/assign @coreydaley

@gabemontero
Copy link
Member

generally looks good to me, but I'll defer to @coreydaley / @alicerum on completing the reivew process and tagging this

@coreydaley
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 5, 2021
@otaviof otaviof requested a review from coreydaley July 6, 2021 04:30
@coreydaley
Copy link
Contributor

Looks like I'm not on the reviewers or the approvers list @otaviof https://github.com/shipwright-io/cli/blob/main/OWNERS
Someone else will have to do the approval

@gabemontero
Copy link
Member

gabemontero commented Jul 6, 2021

Looks like I'm not on the reviewers or the approvers list @otaviof https://github.com/shipwright-io/cli/blob/main/OWNERS
Someone else will have to do the approval

ok we can get into updating the owners file once you start hacking on this repo @coreydaley ... maybe as part of whatever initial PR you submit

that said, with @otaviof being listed as an approver in the OWNERS file, he should be able to "self approve" ... approve works differently that lgtm ... but I'm pretty sure that Adam set things up so that approvers' PRs are not automatically approved (vs. how openshift repos work).

Give specifying the approve prow command a try @otaviof and we'll go from there

@alicerum
Copy link
Member

alicerum commented Jul 7, 2021

/lgtm

@alicerum
Copy link
Member

alicerum commented Jul 7, 2021

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 7, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alicerum

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 7, 2021
@openshift-merge-robot openshift-merge-robot merged commit 7561eab into shipwright-io:main Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants