Commit 2f5ebd6
committed
fix: silence Bandit test server warnings
- Remove unused 'alias Plug.Conn' (we use the fully-qualified
Elixir.Plug.Conn instead).
- Use '@behaviour Elixir.Plug' inside the nested Plug module so
Elixir recognizes the behaviour declaration. Without the
fully-qualified name, '@behaviour Plug' refers to the inner
module (self-reference), which is why Credo and the compiler
flagged it as 'module is not a behaviour'.
107 tests pass. CI green (Credo strict, --warnings-as-errors clean).1 parent 590bcab commit 2f5ebd6
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
| |||
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
82 | | - | |
83 | | - | |
84 | 80 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
| |||
0 commit comments