From 32f98b7adce75bfb84da50443bbdb11b35e206ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C3=ADgny?= Date: Fri, 3 Oct 2025 09:07:03 -0400 Subject: [PATCH] Impl `supports_umbrella?` --- lib/mix/tasks/usage_rules.install.ex | 3 +++ lib/mix/tasks/usage_rules.sync.ex | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/mix/tasks/usage_rules.install.ex b/lib/mix/tasks/usage_rules.install.ex index 0bf66f9..fed6def 100644 --- a/lib/mix/tasks/usage_rules.install.ex +++ b/lib/mix/tasks/usage_rules.install.ex @@ -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 diff --git a/lib/mix/tasks/usage_rules.sync.ex b/lib/mix/tasks/usage_rules.sync.ex index b1fbb04..ab8bd14 100644 --- a/lib/mix/tasks/usage_rules.sync.ex +++ b/lib/mix/tasks/usage_rules.sync.ex @@ -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] @@ -385,8 +388,8 @@ if Code.ensure_loaded?(Igniter) do # 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. """