Repository navigation
Commit 610d7b0
committed
Move zero-to-a-power into its own helper to keep Pow's complexity down [patch]
SonarCloud S3776 counted Pow at a cognitive complexity of 17 against a
limit of 15 once the zero-base branch gained its sign check. The branch now
calls PowOfZero, which holds that check. Behaviour is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QK96a24CjVhUK9u1Ss2YNN1 parent f0720fe commit 610d7b0
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1755 | 1755 | | |
1756 | 1756 | | |
1757 | 1757 | | |
1758 | | - | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
| 1758 | + | |
1762 | 1759 | | |
1763 | 1760 | | |
1764 | 1761 | | |
| |||
1801 | 1798 | | |
1802 | 1799 | | |
1803 | 1800 | | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
1804 | 1812 | | |
1805 | 1813 | | |
1806 | 1814 | | |
| |||
0 commit comments