Commit c515163
committed
fix: resolve Dialyzer type errors and pattern matching issues
- Remove unreachable cleanup_pidfile error pattern in Server.bootstrap/0
- Fix pattern matching in Server.bootstrap/0 to handle init_config_file errors
- Remove dead code branches in Config.validate_bin/1 and Config.read_saved_config/0
- Add Dialyzer ignore file for supervisor callback false positives
- Configure mix.exs to use dialyzer.ignore-warnings
- Update telemetry start_poller spec to include :ignore return type
- Reduce Dialyzer errors from 8 to 0 (4 ignored false positives)1 parent be10d05 commit c515163
File tree
5 files changed
+11
-18
lines changed- lib/caddy
5 files changed
+11
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | 267 | | |
269 | 268 | | |
270 | 269 | | |
| |||
410 | 409 | | |
411 | 410 | | |
412 | 411 | | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | 412 | | |
417 | 413 | | |
418 | 414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 136 | | |
146 | 137 | | |
147 | 138 | | |
| |||
160 | 151 | | |
161 | 152 | | |
162 | 153 | | |
163 | | - | |
| 154 | + | |
164 | 155 | | |
165 | 156 | | |
166 | 157 | | |
167 | | - | |
| 158 | + | |
168 | 159 | | |
169 | 160 | | |
170 | | - | |
| 161 | + | |
171 | 162 | | |
172 | 163 | | |
173 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments