@@ -200,10 +200,6 @@ defmodule Mix.Tasks.Format do
200
200
{ formatter_opts_and_subs , _sources } =
201
201
eval_deps_and_subdirectories ( dot_formatter , [ ] , formatter_opts , [ dot_formatter ] )
202
202
203
- # In case plugins are given, we need to reenable those tasks
204
- Mix.Task . reenable ( "loadpaths" )
205
- Mix.Task . reenable ( "deps.loadpaths" )
206
-
207
203
args
208
204
|> expand_args ( dot_formatter , formatter_opts_and_subs , opts )
209
205
|> Task . async_stream ( & format_file ( & 1 , opts ) , ordered: false , timeout: 30000 )
@@ -252,8 +248,6 @@ defmodule Mix.Tasks.Format do
252
248
end
253
249
end
254
250
255
- @ loadpath_args [ "--no-elixir-version-check" , "--no-deps-check" , "--no-archives-check" ]
256
-
257
251
# This function reads exported configuration from the imported
258
252
# dependencies and subdirectories and deals with caching the result
259
253
# of reading such configuration in a manifest file.
@@ -275,11 +269,11 @@ defmodule Mix.Tasks.Format do
275
269
end
276
270
277
271
if plugins != [ ] do
278
- Mix.Task . run ( "loadpaths" , @ loadpath_args )
272
+ Mix.Task . run ( "loadpaths" , [ ] )
279
273
end
280
274
281
275
if not Enum . all? ( plugins , & Code . ensure_loaded? / 1 ) do
282
- Mix.Task . run ( "compile" , @ loadpath_args )
276
+ Mix.Task . run ( "compile" , [ ] )
283
277
end
284
278
285
279
for plugin <- plugins do
0 commit comments