Commit 5177015
committed
fix(ci): resolve all credo strict mode issues
- Replace cond with if statement in ReducerCompiler (cleaner)
- Add alias for Redux.Action in __using__(:process) macro
- Disable nesting check for apply_combined_reducer (macro-generated code)
- Disable cyclomatic complexity check for __before_compile__ (macro)
All 264 tests passing. Credo --strict now passes with exit code 0.1 parent 0c07b01 commit 5177015
File tree
2 files changed
+17
-14
lines changed- lib/phoenix
- session_process/redux
2 files changed
+17
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1006 | 1006 | | |
1007 | 1007 | | |
1008 | 1008 | | |
| 1009 | + | |
1009 | 1010 | | |
1010 | 1011 | | |
1011 | 1012 | | |
| |||
1470 | 1471 | | |
1471 | 1472 | | |
1472 | 1473 | | |
| 1474 | + | |
1473 | 1475 | | |
1474 | 1476 | | |
1475 | 1477 | | |
| |||
1515 | 1517 | | |
1516 | 1518 | | |
1517 | 1519 | | |
1518 | | - | |
| 1520 | + | |
1519 | 1521 | | |
1520 | | - | |
| 1522 | + | |
1521 | 1523 | | |
1522 | 1524 | | |
1523 | 1525 | | |
| |||
1626 | 1628 | | |
1627 | 1629 | | |
1628 | 1630 | | |
1629 | | - | |
| 1631 | + | |
1630 | 1632 | | |
1631 | 1633 | | |
1632 | 1634 | | |
| |||
1692 | 1694 | | |
1693 | 1695 | | |
1694 | 1696 | | |
| 1697 | + | |
| 1698 | + | |
1695 | 1699 | | |
1696 | 1700 | | |
1697 | 1701 | | |
1698 | 1702 | | |
1699 | | - | |
| 1703 | + | |
1700 | 1704 | | |
1701 | 1705 | | |
1702 | 1706 | | |
1703 | 1707 | | |
1704 | 1708 | | |
1705 | | - | |
| 1709 | + | |
1706 | 1710 | | |
1707 | 1711 | | |
1708 | 1712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
0 commit comments