Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/mix/tasks/usage_rules.install.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ if Code.ensure_loaded?(Igniter) do
For more info and examples: `mix help usage_rules.sync`
""")
end

@impl Igniter.Mix.Task
def supports_umbrella?, do: true
end
else
defmodule Mix.Tasks.UsageRules.Install do
Expand Down
7 changes: 5 additions & 2 deletions lib/mix/tasks/usage_rules.sync.ex
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ if Code.ensure_loaded?(Igniter) do
|> notice_about_all_option(all_option)
end

@impl Igniter.Mix.Task
def supports_umbrella?, do: true

defp notice_about_all_option(igniter, all_option) do
file = igniter.args.positional[:file]

Expand Down Expand Up @@ -385,8 +388,8 @@ if Code.ensure_loaded?(Igniter) do
<!-- usage-rules-header -->
# Usage Rules

**IMPORTANT**: Consult these usage rules early and often when working with the packages listed below.
Before attempting to use any of these packages or to discover if you should use them, review their
**IMPORTANT**: Consult these usage rules early and often when working with the packages listed below.
Before attempting to use any of these packages or to discover if you should use them, review their
usage rules to understand the correct patterns, conventions, and best practices.
<!-- usage-rules-header-end -->
"""
Expand Down