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

Lint lib/ #89

Merged
merged 1 commit into from
Sep 20, 2016
Merged

Lint lib/ #89

merged 1 commit into from
Sep 20, 2016

Conversation

sigv
Copy link
Collaborator

@sigv sigv commented Sep 20, 2016

The carriers file contains duplicate keys. They have been resolved:

  • exact duplicate of ideacellular deleted
  • exact duplicate of onlinebeep deleted
  • one duplicate of surewestcommunications (%s@freesurf.ch) renamed to sunrisecommunications as www.freesurf.ch redirects to sunrise.ch

Unused variables were defined in the library. They have been resolved:

  • reference to the underscore module deleted
  • reference to the exec function of the child_process module deleted

The carrier argument in text.send was not documented in the library code. That line of documentation has been added.

The carrier argument in text.send was not being checked as strictly equal to null. The triple-equals operator has now been applied to the comparison.

The requires had bad line breakings before commas. The commas have all been moved to ends of lines instead.

On an unrelated not to lint, the console.log call in the text library has been switched out with an output call to obey the debug setting.

The carriers file contains duplicate keys. They have been resolved:
- exact duplicate of ideacellular deleted
- exact duplicate of onlinebeep deleted
- one duplicate of surewestcommunications (%s@freesurf.ch) renamed to
  sunrisecommunications as www.freesurf.ch redirects to sunrise.ch

Unused variables were defined in the library. They have been resolved:
- reference to the `underscore` module deleted
- reference to the `exec` function of the `child_process` module deleted

The carrier argument in text.send was not documented in the library
code. That line of documentation has been added.

The carrier argument in text.send was not being checked as strictly
equal to null. The triple-equals operator has now been applied to
the comparison.

The requires had bad line breakings before commas. The commas have
all been moved to ends of lines instead.

On an unrelated not to lint, the console.log call in the text library
has been switched out with an output call to obey the debug setting.
@typpo typpo merged commit 2162a47 into typpo:master Sep 20, 2016
@typpo
Copy link
Owner

typpo commented Sep 20, 2016

Thanks very much, Valter, this is long overdue for a cleanup 👍

@sigv sigv deleted the lint-lib-1609 branch September 20, 2016 16:35
@sigv
Copy link
Collaborator Author

sigv commented Sep 20, 2016

Yeah, I noticed there are a lot of rough edges. This PR was just implementing the suggestions by JSHint in the lib subdirectory, but it's a start for sure. Happy to help out! 👍

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.

2 participants