Skip to content

Fix a few alerts from LGTM.com#35

Closed
robertbrignull wants to merge 9 commits intohatnote:masterfrom
robertbrignull:lgtm_alerts
Closed

Fix a few alerts from LGTM.com#35
robertbrignull wants to merge 9 commits intohatnote:masterfrom
robertbrignull:lgtm_alerts

Conversation

@robertbrignull
Copy link

This PR fixes all the alerts from LGTM.com that I thought were correct and useful. There's nothing massively critical but they are still results where it's nice to fix them and make the code a little cleaner. The rest of the results that I haven't addressed are either results in libraries or deliberate actions so I didn't want to change anything.

Let me know if any of the results don't make sense or if you think something is wrong. There are links on LGTM to the alert help which describes what the result means and why it is good to address it. For full disclosure I do work at the company that makes LGTM.com and I'm happy to answer any questions.

I've also added a .lgtm.yml file to the repository which is what we use to allow you to customize the results. In this case it marks a few files as library code so you won't see the alerts in them. If you don't want this file then I'm happy to remove it from the PR, but hopefully it's not too intrusive.

If you wanted then you could even enable automatic code review integration and then LGTM will analyze pull requests that get made and make sure that no problems creep back in. Entirely up to you.

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.

1 participant