Commit ee984d5
committed
refactor(install-dynamic-plugins): address remaining Sonar findings
- `merger.ts isEqual` (complexity 20 → ~6): extract `isArrayEqual` and
`isObjectEqual` helpers. Each branch now dispatches to a single-
purpose function so the main `isEqual` is a flat type-dispatch
instead of nested loops.
- `plugin-hash.ts compareCodePoint`: replace the nested ternary
`a < b ? -1 : a > b ? 1 : 0` with three early returns. Same
behaviour, no nested conditional.
115 tests still pass.1 parent dd84f75 commit ee984d5
File tree
3 files changed
+33
-34
lines changed- scripts/install-dynamic-plugins
- dist
- src
3 files changed
+33
-34
lines changedLines changed: 14 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 256 | + | |
| 257 | + | |
272 | 258 | | |
273 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
0 commit comments