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

Add Megacheck #84

Merged
merged 2 commits into from
May 25, 2017
Merged

Add Megacheck #84

merged 2 commits into from
May 25, 2017

Conversation

mjtrangoni
Copy link
Contributor

Hi,
I just found megacheck as a part of the go-tools project and wanted to give it a try.

As you can see above, this seems to be worth.

$ make
>> formatting code
>> vetting code
>> megacheck code
sources/procfs.go:84:2: field subsystem is unused (U1000)
sources/procfs.go:534:3: should replace loop with metricList = append(metricList, statsList...) (S1011)
sources/procfs.go:623:3: should replace loop with metricList = append(metricList, jobList...) (S1011)
sources/procfs.go:714:22: this value of err is never used (SA4006)
sources/procfs_test.go:207:2: this value of metricList is never used (SA4006)
sources/source.go:31:6: type typedDesc is unused (U1000)
Makefile:39: recipe for target 'megacheck' failed
make: *** [megacheck] Error 1

See also,

This could be integrated to the project, of course after resolving the issues, if you are interested.

@roclark
Copy link
Contributor

roclark commented May 25, 2017

Hey @mjtrangoni this looks cool, thanks for sharing! I definitely see value in adding this, though this PR could use a bit of cleaning. First, do you mind rebasing against the master branch of this upstream repository and adding the single commit (looks like you are adding just one new commit, though I could be wrong). Second, looks like the Travis check is failing as it is unable to run megacheck. Do you mind adding another commit to edit the travis.yml file?

Thanks! I'm excited about this - let me know if you have any questions.

@mjtrangoni mjtrangoni force-pushed the megacheck branch 2 times, most recently from dce7f4a to fbd46fb Compare May 25, 2017 14:53
@mjtrangoni
Copy link
Contributor Author

Hi @roclark,
It was my fault, sorry! The PR is now rebased against the upstream master branch, and travis is failing as I expected because of the megacheck findings listed above.

@roclark
Copy link
Contributor

roclark commented May 25, 2017

No worries! Looks much better now! And yes, Travis failing in this case is expected. I will let @joehandzik voice his opinion as well, but I might hold off on merging this until we at least have a fix for these issues in the works or merged - if at the very least to minimize (or prevent) the time the repository is marked as failing the build.

Makefile Outdated

.PHONY: all format vet build test promu clean $(GOPATH)/bin/promu
.PHONY: all format vet mega build test promu mega clean $(GOPATH)/bin/promu $(GOPATH)/bin/megacheck
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is mega in this line twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@roclark
Copy link
Contributor

roclark commented May 25, 2017

@mjtrangoni now that @joehandzik fixed the issues raised by megacheck and merged them with master, do you mind rebasing against the latest master commit again? I will pull this in once rebased and all of the checks are passing!

Edit: Nevermind - I remembered I can manually retrigger the build, so you are good to go!

@roclark roclark merged commit ba031bb into HewlettPackard:master May 25, 2017
@mjtrangoni mjtrangoni deleted the megacheck branch June 20, 2017 10:51
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