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 dialyzer #34

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add dialyzer #34

wants to merge 4 commits into from

Conversation

varnerac
Copy link
Contributor

@varnerac varnerac commented Dec 6, 2013

This patch does not fix all dialyzer warnings. It uses specs generated by Typer with some hand editing to clean them up. The -spec annotations try to match the original edoc specs where possible. However, some of the edoc annotations were out of date. The specs are underspecified in some places to allow dialyzer to run.

This makes riak-erlang-http-client fragile against changes in risk-erlang-client (protobuf). It should be, since it is designed to be a drop-in replacement.

…t because of issues pulling type specs out of an include file (.hrl)
This patch does not fix all dialyzer warnings. It uses specs generated by Typer with some hand editing to clean them up. The -spec annotations try to match the original edoc specs where possible. However, some of the edoc annotations were out of date. The specs are underspecified in some places to allow dialyzer to run.
@sleep 1
dialyzer --verbose -Wno_return --plt $(COMBO_PLT) $(INCLUDES) ebin

typer: $(DEPSOLVER_PLT)
Copy link
Contributor

Choose a reason for hiding this comment

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

Where do you define this variable? I only see COMBO_PLT.

…in rebar.config to debug_info and warnings_as_errors to align with Basho standard practices.
@varnerac
Copy link
Contributor Author

varnerac commented Dec 7, 2013

I fixed those issues in varnerac@fa2d69c

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

Successfully merging this pull request may close these issues.

2 participants