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 and xref warnings #94

Merged
merged 10 commits into from
May 30, 2014
Merged

Conversation

seancribbs
Copy link

Let's get this build SUPER GREEN

Protobuffs generates insufficient type information for its records.

Resolves:

riak_pb_codec.erl:338: Invalid type specification for function riak_pb_codec:decode_commit_hooks/1. The success typing is ([any()]) -> [{atom(),atom() | [any(),...]} | {'modfun',atom(),atom() | [any(),...]}]
Calls within riak_pb only pass empty lists in place of
type_mappings(), but riak_kv will pass its own ?MOD_MAP. This results
in a false warning in encode_type/2.

Resolves:

riak_pb_dt_codec.erl:181: The pattern {AtomType, _} can never match the type 'false'
Resolves:

riak_pb_search_codec.erl:45: Invalid type specification for function riak_pb_search_codec:decode_search_doc/1. The success typing is (#rpbsearchdoc{fields::[{_,_,_}]}) -> [{[any()],[any()]}]
Resolves:

Unknown types:
  riakc_obj:metadata/0
  riakc_obj:value/0
This is a library application, so all the exported functions in
generated code are potentially used elsewhere.
@kellymclaughlin kellymclaughlin added this to the 2.0-RC milestone May 30, 2014
seancribbs added a commit to basho/tools.mk that referenced this pull request May 30, 2014
As found in basho/riak_pb#94, on FreeBSD 9, the "\s" shortcut
character class leads to not filtering out the desired lines, meaning
we were left with a non-empty dialyzer_unhandled_warnings, even if all
known warnings were filtered by the second grep. Changing this to
[[:space:]] resolves the issue, and is more consistent with the
previous 'grep' call in the step.
@reiddraper
Copy link

+1

@reiddraper
Copy link

Ready to be put on bors once this is merged?

@seancribbs
Copy link
Author

Yes to bors.

seancribbs added a commit that referenced this pull request May 30, 2014
@seancribbs seancribbs merged commit fc18a9b into develop May 30, 2014
@seancribbs seancribbs deleted the bugfix/sdc/dialyzer-xref branch May 30, 2014 19:07
@reiddraper
Copy link

Added to bors.

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