File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,20 +26,20 @@ defmodule Mix.Tasks.Styler.InlineAttrs do
2626
2727 ## Example:
2828
29- # This ...
30- defmodule A do
31- @non_literal_attr Application.compile_env(...)
32- @literal_value_one_time_use :my_key
29+ # This ...
30+ defmodule A do
31+ @non_literal_attr Application.compile_env(...)
32+ @literal_value_with_only_one_reference :my_key
3333
34- def foo(), do: Application.get_env(:my_app, @literal_value_one_time_use )
35- end
34+ def foo(), do: Application.get_env(:my_app, @literal_value_with_only_one_reference )
35+ end
3636
37- # Becomes this
38- defmodule A do
39- @non_literal_attr Application.compile_env(...)
37+ # Becomes this
38+ defmodule A do
39+ @non_literal_attr Application.compile_env(...)
4040
41- def foo(), do: Application.get_env(:my_app, :my_key)
42- end
41+ def foo(), do: Application.get_env(:my_app, :my_key)
42+ end
4343 """
4444 use Mix.Task
4545
You can’t perform that action at this time.
0 commit comments