Skip to content

Commit

Permalink
Merge pull request #2368 from ferd/ignore-global-profile-warning
Browse files Browse the repository at this point in the history
Ignore `global` and `default` in empty profiles warning for `as`
  • Loading branch information
ferd authored Sep 23, 2020
2 parents 9a0ccee + 7eb983b commit dfbe941
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/rebar_prv_as.erl
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,8 @@ warn_on_empty_profile(Profiles, State) ->
ProjectApps = rebar_state:project_apps(State),
DefinedProfiles = rebar_state:get(State, profiles, []) ++
lists:flatten([rebar_app_info:get(AppInfo, profiles, []) || AppInfo <- ProjectApps]),
[?WARN("No entry for profile ~ts in config.", [Profile]) ||
Profile <- Profiles, not(lists:keymember(list_to_atom(Profile), 1, DefinedProfiles))].
[?WARN("No entry for profile ~ts in config.", [Profile])
|| Profile <- Profiles,
not lists:keymember(list_to_atom(Profile), 1, DefinedProfiles),
Profile =/= "global", Profile =/= "default"],
ok.

0 comments on commit dfbe941

Please sign in to comment.