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

Allow exclusion of apps in cover #1463

Merged
merged 1 commit into from
Jan 31, 2017
Merged

Conversation

varnerac
Copy link

Adds a new option {cover_excl_apps, Apps} to exclude apps from coverage
analysis by name.

false -> filter_checkouts(Rest, [App|Acc])
filter_checkouts_and_excluded([], _ExclApps, Acc) -> lists:reverse(Acc);
filter_checkouts_and_excluded([App|Rest], ExclApps, Acc) ->
case rebar_app_info:is_checkout(App) or lists:member(rebar_app_info:name(App), ExclApps) of
Copy link
Collaborator

Choose a reason for hiding this comment

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

should use orelse to use shortcircuiting expressoins

Adds a new option `{cover_excl_apps, Apps}` to exclude apps from coverage
analysis by name.
@varnerac
Copy link
Author

I changed or to short-circuit orelse per the review.

@ferd
Copy link
Collaborator

ferd commented Jan 30, 2017

Sounds good to me. @talentdeficit any opinions?

@talentdeficit
Copy link
Contributor

this looks good to me, we should probably document it tho

@varnerac
Copy link
Author

I am happy to document this after merge. I did not see documentation instructions in the CONTRIBUTING doc.

@ferd
Copy link
Collaborator

ferd commented Jan 31, 2017

They're on rebar.org -- the commands section for example, contains a list of config values possible for each command, and the configuration section also does although in a different format.

@ferd ferd merged commit 267f231 into erlang:master Jan 31, 2017
@varnerac varnerac deleted the cover_exclude_apps branch February 23, 2017 19:54
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