Skip to content

Commit

Permalink
Don't prune code paths
Browse files Browse the repository at this point in the history
  • Loading branch information
danschultzer committed Jul 22, 2023
1 parent 0721c57 commit 09fd7a2
Show file tree
Hide file tree
Showing 20 changed files with 51 additions and 7 deletions.
7 changes: 6 additions & 1 deletion test/fixtures/alt_core_path/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ defmodule AltCorePath.Mixfile do
use Mix.Project

def project do
[app: :alt_core_path, version: "1.0.0", dialyzer: [plt_core_path: "_build"]]
[
app: :alt_core_path,
prune_code_paths: false,
version: "1.0.0",
dialyzer: [plt_core_path: "_build"]
]
end
end
7 changes: 6 additions & 1 deletion test/fixtures/alt_local_path/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ defmodule AltLocalPath.Mixfile do
use Mix.Project

def project do
[app: :alt_local_path, version: "1.0.0", dialyzer: [plt_local_path: "dialyzer"]]
[
app: :alt_local_path,
prune_code_paths: false,
version: "1.0.0",
dialyzer: [plt_local_path: "dialyzer"]
]
end
end
2 changes: 1 addition & 1 deletion test/fixtures/default_apps/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule DefaultApps.Mixfile do
use Mix.Project

def project do
[app: :default_apps, version: "0.1.0", deps: deps()]
[app: :default_apps, prune_code_paths: false, version: "0.1.0", deps: deps()]
end

def application do
Expand Down
8 changes: 7 additions & 1 deletion test/fixtures/direct_apps/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ defmodule DirectApps.Mixfile do
use Mix.Project

def project do
[app: :direct_apps, version: "0.1.0", deps: deps(), dialyzer: [plt_add_deps: :apps_direct]]
[
app: :direct_apps,
prune_code_paths: false,
version: "0.1.0",
deps: deps(),
dialyzer: [plt_add_deps: :apps_direct]
]
end

def application do
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/ignore/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ defmodule Ignore.Mixfile do
[
app: :ignore,
version: "0.1.0",
prune_code_paths: false,
dialyzer: [
ignore_warnings: "ignore_test.exs",
list_unused_filters: true
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/ignore_apps/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ defmodule IgnoreApps.Mixfile do
[
app: :ignore_apps,
version: "0.1.0",
prune_code_paths: false,
deps: deps(),
dialyzer: [
plt_ignore_apps: [:logger]
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/ignore_strict/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ defmodule IgnoreStrict.Mixfile do
[
app: :ignore_strict,
version: "0.1.0",
prune_code_paths: false,
dialyzer: [
ignore_warnings: "ignore_strict_test.exs",
list_unused_filters: true
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/ignore_string/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ defmodule IgnoreString.Mixfile do
[
app: :ignore_string,
version: "0.1.0",
prune_code_paths: false,
dialyzer: [
ignore_warnings: "dialyzer.ignore-warnings",
list_unused_filters: true
Expand Down
7 changes: 6 additions & 1 deletion test/fixtures/local_plt/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ defmodule LocalPlt.Mixfile do
use Mix.Project

def project do
[app: :local_plt, version: "1.0.0", dialyzer: [plt_file: "local.plt"]]
[
app: :local_plt,
prune_code_paths: false,
version: "1.0.0",
dialyzer: [plt_file: "local.plt"]
]
end
end
7 changes: 6 additions & 1 deletion test/fixtures/local_plt_no_warn/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ defmodule LocalPltNoWarn.Mixfile do
use Mix.Project

def project do
[app: :local_plt_no_warn, version: "1.0.0", dialyzer: [plt_file: {:no_warn, "local.plt"}]]
[
app: :local_plt_no_warn,
prune_code_paths: false,
version: "1.0.0",
dialyzer: [plt_file: {:no_warn, "local.plt"}]
]
end
end
1 change: 1 addition & 0 deletions test/fixtures/no_lockfile/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defmodule NoLockfile.Mixfile do
def project do
[
app: :no_lockfile,
prune_code_paths: false,
version: "1.0.0"
]
end
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/no_umbrella/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defmodule NoUmbrella.Mixfile do
def project do
[
app: :no_umbrella,
prune_code_paths: false,
version: "0.1.0",
lockfile: "../mix.lock",
elixir: "~> 1.3",
Expand Down
7 changes: 6 additions & 1 deletion test/fixtures/nonexistent_deps/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ defmodule NonexistentDeps.Mixfile do
use Mix.Project

def project do
[app: :nonexistent_deps, version: "0.1.0", deps: deps()]
[
app: :nonexistent_deps,
prune_code_paths: false,
version: "0.1.0",
deps: deps()
]
end

def application do
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/plt_add_deps_deprecations/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defmodule PltAddDepsDeprecations.Mixfile do
def project do
[
app: :plt_add_deps_deprecations,
prune_code_paths: false,
version: "0.1.0",
dialyzer: [
plt_add_deps: true
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/umbrella/apps/first_one/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defmodule FirstOne.Mixfile do
def project do
[
app: :first_one,
prune_code_paths: false,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/umbrella/apps/second_one/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defmodule SecondOne.Mixfile do
def project do
[
app: :second_one,
prune_code_paths: false,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/umbrella/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defmodule Umbrella.Mixfile do
def project do
[
apps_path: "apps",
prune_code_paths: false,
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: []
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/umbrella_ignore_apps/apps/first_one/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defmodule FirstOne.Mixfile do
def project do
[
app: :first_one,
prune_code_paths: false,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/umbrella_ignore_apps/apps/second_one/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defmodule SecondOne.Mixfile do
def project do
[
app: :second_one,
prune_code_paths: false,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/umbrella_ignore_apps/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defmodule UmbrellaIgnoreApps.Mixfile do
def project do
[
apps_path: "apps",
prune_code_paths: false,
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: [],
Expand Down

0 comments on commit 09fd7a2

Please sign in to comment.