Ignore cluster_info warnings.
Ignore result of list comprehensions.

Resolves:

riak_kv_stat.erl:63: Expression produces a value of type [any()], but this value is unmatched
riak_kv_stat.erl:65: Expression produces a value of type ['ok' | {'error',_,'metric_already_exists' | 'nonexistent_metric' | 'unsupported_metric_type'}], but this value is unmatched
Resolve folsom warnings.

Be explicit on match for success and crash if unsuccessful.

Resolves:

riak_kv_stat.erl:172: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:176: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:184: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:185: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:188: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:192: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:195: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:199: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:202: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:203: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:207: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:208: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:209: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:210: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:215: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:216: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:221: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:222: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:223: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:224: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:228: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:229: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:234: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:235: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:239: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:256: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:259: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:260: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:266: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:267: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:303: Expression produces a value of type ['ok' | {'error',_,'unsupported_metric_type'}], but this value is unmatched
riak_kv_stat.erl:318: Expression produces a value of type ['ok' | {'error',_,'unsupported_metric_type'}], but this value is unmatched
riak_kv_stat.erl:338: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:348: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
Fail is metric can't be created.

Resolves:

riak_kv_stat.erl:309: Expression produces a value of type 'ok' | {'error',_,'metric_already_exists' | 'unsupported_metric_type'}, but this value is unmatched
Bump tools.mk.
Ignore additional dialyzer files.
Ensure stat can be registered.

Resolves:

riak_kv_stat.erl:489: Expression produces a value of type 'ok' | {'error',_,'metric_already_exists' | 'unsupported_metric_type'}, but this value is unmatched
Ignore tags file.
Ignore the result of the list comprehension.

Resolves:

riak_kv_stat.erl:325: Expression produces a value of type [any()], but this value is unmatched
Normalize return value of function.

Resolves:

riak_kv_stat.erl:577: Expression produces a value of type 'ok' | ['ok' | {'error',_,'metric_already_exists' | 'nonexistent_metric' | 'unsupported_metric_type'}], but this value is unmatched
Assert we can create the metric.

Resolves:

riak_kv_stat.erl:324: Expression produces a value of type 'ok' | {'error',_,'metric_already_exists' | 'unsupported_metric_type'}, but this value is unmatched
Ignore the result of the list comprehension.

Resolves:

riak_kv_stat.erl:310: Expression produces a value of type [any()], but this value is unmatched
Remove incorrect type specification.
Normalize the return value from the loop.
Ensure statistics can be registered.

Resolves:

riak_kv_stat.erl:256: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
riak_kv_stat.erl:288: Expression produces a value of type 'ok' | {'error',_,'unsupported_metric_type'}, but this value is unmatched
Resolve a series of match warnings.

Resolves:

riak_kv_console.erl:320: Expression produces a value of type ['ok'], but this value is unmatched
riak_kv_console.erl:336: Expression produces a value of type ['ok'], but this value is unmatched
riak_kv_console.erl:349: Expression produces a value of type ['ok'], but this value is unmatched
riak_kv_console.erl:643: Expression produces a value of type 'ok' | ['ok'], but this value is unmatched
Ignore legacy_gossip related code path.

Even though legacy_gossip still exists, the code path is hardcoded to
false, so ignore dialyzer figuring out these sections of code will never
be reached.

Resolves:

riak_kv_console.erl:152: The pattern {'error', 'legacy_mode'} can never match the type {'error','is_up' | 'not_member' | 'only_member'}
Assert we can load riak_core.

Resolves:

riak_kv_console.erl:219: Expression produces a value of type 'ok' | {'error',_}, but this value is unmatched
Ignore or add strict matches.

Resolves:

riak_kv_console.erl:285: Expression produces a value of type [['ok']], but this value is unmatched
riak_kv_console.erl:227: Expression produces a value of type 'nop' | 'ok' | {'error',_}, but this value is unmatched
Ensure load_file succeeds.

Resolves:

riak_kv_console.erl:299: Expression produces a value of type {'error','badfile' | 'native_code' | 'nofile' | 'not_purged' | 'on_load' | 'sticky_directory'} | {'module',atom() | tuple()}, but this value is unmatched