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

Some code fixes based on alerts from lgtm.com #21

Merged
merged 4 commits into from
Nov 16, 2017

Conversation

sj
Copy link
Contributor

@sj sj commented Nov 16, 2017

Explanation About What Code Achieves:

Bottery is being analysed by lgtm.com: https://lgtm.com/projects/g/google/bottery/. This PR fixes four alerts (in separate commits) flagged up by lgtm.com. I hope it's of use!

Steps To Test:

The changes shouldn't change any of the behaviour of the code, exception for my change in js/io.js. However, the code that I changed does not seem to be used.

TODOs:

If you think these fixes are useful and would like to make sure problems like these are not accidentally introduced in the future: consider enabling automatic code reviews through PR integration on https://lgtm.com/projects/g/google/bottery/ci/

Here's an example of how NASA are using automatic code reviews for their Open-MBEE project: Open-MBEE/exec-cameo-mdk#105

(full disclosure: I'm part of the team behind lgtm.com 😄 — let me know if you have any feedback!)

@calvinashmore
Copy link
Contributor

yep, this looks good to me
thank you for the cleanup!

@calvinashmore calvinashmore merged commit 7057573 into google:master Nov 16, 2017
@sj
Copy link
Contributor Author

sj commented Nov 17, 2017

@calvinashmore: thanks for the quick merge! I'd love to hear your thoughts on lgtm's automated code reviews if you have a moment to try it 😄

@calvinashmore
Copy link
Contributor

It seems like a really helpful tool, if you've got your environment configured correctly for it.

I tried setting up an account and analyzing a couple of my projects. It succeeded on the 10+ year old one but stumbled a couple of others due to build issues. It reminds me quite a bit of the automated tools we have at work. I think it would be especially effective if it were able to automate fixes (and maybe let a user interactively choose which to use). The tool might already do that but I haven't seen that particular behavior yet

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants