Commit 726a191
committed
fix: Resolve GitHub Actions CI failures for Credo and Dialyzer
Fix code quality issues identified by Credo and Dialyzer:
Credo fixes:
- Fix alias ordering (alphabetically order HTTP.Promise, HTTP.Request, HTTP.Response)
- Use underscores in large numbers (16_384, 10_000)
- Remove parentheses from zero-arity function definitions
- Replace Enum.map/2 |> Enum.join/2 with more efficient Enum.map_join/3
Dialyzer configuration:
- Add .dialyzer_ignore.exs to suppress known false positives and design decisions
- Configure Dialyzer flags for better analysis
- Update CI workflow to use --format github instead of deprecated --halt-exit-status
- Ignore 7 known type issues related to:
- throw/catch error handling patterns
- Task.Supervisor opaque types
- Intentional :httpc.request list format
- Protected pattern matching in response handling
Remaining acceptable issues:
- 6 Credo refactoring suggestions (complexity, nesting)
- All Dialyzer errors now properly ignored with documented reasons1 parent 27629cf commit 726a191
File tree
7 files changed
+32
-16
lines changed- .github/workflows
- lib
- http
- test/http
7 files changed
+32
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| |||
374 | 373 | | |
375 | 374 | | |
376 | 375 | | |
377 | | - | |
378 | | - | |
| 376 | + | |
379 | 377 | | |
380 | 378 | | |
381 | 379 | | |
| |||
440 | 438 | | |
441 | 439 | | |
442 | 440 | | |
443 | | - | |
| 441 | + | |
444 | 442 | | |
445 | 443 | | |
446 | 444 | | |
| |||
453 | 451 | | |
454 | 452 | | |
455 | 453 | | |
456 | | - | |
| 454 | + | |
457 | 455 | | |
458 | 456 | | |
459 | 457 | | |
| |||
470 | 468 | | |
471 | 469 | | |
472 | 470 | | |
473 | | - | |
| 471 | + | |
474 | 472 | | |
475 | 473 | | |
476 | 474 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
0 commit comments