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

Fix Dialyzer warnings #166

Merged
merged 6 commits into from
Mar 14, 2019
Merged

Fix Dialyzer warnings #166

merged 6 commits into from
Mar 14, 2019

Conversation

g-andrade
Copy link
Contributor

@g-andrade g-andrade commented Jan 25, 2019

  • Look for unknown functions and types when dialyzing
  • Fix Dialyzer warning triggered by unexported socket:socket() type
  • Fix Dialyzer warnings on misnamed ssl:socket() socket type
  • Fix missing wrapping upon skipped iconv:conv/2 call
  • Work around Dialyzer warnings triggered by analysis of eiconv

This is especially useful for library consumers, since some of the found issues would propagate all the way into them and sabotage proper static analysis.

This requires importing implicit dependencies, therefore a dedicated
`dialyzer' rebar3 profile has been created.
Pointed out by these Dialyzer warnings:

  209: The pattern {'ok', S} can never match the type binary()
  227: The pattern {'ok', S} can never match the type binary()

Which are sensible - iconv:conv/2 returns `{ok,_}'.
…conv

Revert this if and when eiconv merges the PR fixing Dialyzer analysis.
@seriyps
Copy link
Collaborator

seriyps commented Jan 28, 2019

Are eiconv fixes submitted to upstream? If yes, can we wait untill they will be merged there and revert rebar.config changes?

@seriyps
Copy link
Collaborator

seriyps commented Jan 28, 2019

Also, it would be really great if some of the repo owners will add travis integration. I see there is already .travis.yml file in the repo, but travis webhook is not enabled for this repo

@g-andrade
Copy link
Contributor Author

Are eiconv fixes submitted to upstream? If yes, can we wait untill they will be merged there and revert rebar.config changes?

Yes, that was my stated intention :-)

@g-andrade
Copy link
Contributor Author

The eiconv fix has been merged upstream, and rebar.config updated.

@mworrell
Copy link
Collaborator

Thanks for the eiconv changes and this change.

@mworrell mworrell merged commit 0d4dccc into gen-smtp:master Mar 14, 2019
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