Skip to content

Conversation

leonardobork
Copy link
Contributor

Allowing to exclude docs from umbrella app docs utilizing ignored_apps: [your selected apps].

I also have created tests for umbrella projects and tests for this specific case.

This PR is related to this issue.

@josevalim
Copy link
Member

Hi @leonardobork, a couple suggestions:

  1. Let's call the option :ignore_apps

  2. The value of the option should be atoms and not strings

  3. Please do not format the test file as it makes it hard to review this feature

  4. We don't need to store ignored_apps in ExUnit.Config as it should only be used in the Mix task

Thanks!

compile_path =
if Mix.Project.umbrella?(config) do
umbrella_compile_paths()
umbrella_compile_paths(get_ignored_apps(options))
Copy link
Member

Choose a reason for hiding this comment

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

get_ignored_apps(options) could be written as Keyword.get(options, :ignore_apps, []).

@josevalim
Copy link
Member

Also, please document the new configuration under mix/tasks/docs.ex.

@leonardobork
Copy link
Contributor Author

@josevalim Thanks, I'll fix this when I get home!

@josevalim josevalim merged commit 7b6745b into elixir-lang:master Jul 14, 2018
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

@aaronrenner
Copy link

@leonardobork Thanks for this! I'm looking forward to using it! ❤️

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

Successfully merging this pull request may close these issues.

4 participants