erlware / relx

Sane, simple release creation for Erlang
http://erlware.github.io/relx
Apache License 2.0
697 stars 232 forks source link

State extended with a filter method to filter xref_warnings #882

Closed acw224 closed 3 years ago

acw224 commented 3 years ago

We extend RELX state with a method that is used to filter XREF warnings.

This method is by default just the identity function.

This is designed in such a way that rebar3 can pass it the method it currently relies on to deal with the ignore_xref attributes in the future, while offering no regression with current rebar3 versions.

tsloughter commented 3 years ago

Nice!

And, hehe, CI fails because of an xref warning :)

tsloughter commented 3 years ago

Should just need to add to xref_ignores in rebar.config:

{rlx_state, filter_xref_warning, 2},