nccgroup / sobelow

Security-focused static analysis for the Phoenix Framework
Apache License 2.0
1.66k stars 92 forks source link

fix is_endpoint? error in main #157

Closed MikaAK closed 4 months ago

MikaAK commented 5 months ago

** (KeyError) key :endpoint? not found in: %{controller?: false, def_funs: [], file_path: "", filename: "lib/blitz_cms_api.ex", is_endpoint?: false, router?: false}. Did you mean:

  * :is_endpoint?

(sobelow 0.13.0) lib/sobelow.ex:330: anonymous fn/2 in Sobelow.get_phoenix_files/2
(elixir 1.14.2) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
(sobelow 0.13.0) lib/sobelow.ex:325: Sobelow.get_phoenix_files/2
(sobelow 0.13.0) lib/sobelow.ex:74: Sobelow.run/0
(mix 1.14.2) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4
(mix 1.14.2) lib/mix/cli.ex:84: Mix.CLI.run_task/2