Commit ed2aa1d
refactor: Remove redundant code and extract magic numbers (#1659)
* refactor: Remove redundant case-sensitive string comparisons
Remove redundant Ordinal string comparisons that are already covered
by OrdinalIgnoreCase checks in ShouldSkipBasedOnHelpText method:
- helpText.Contains("deprecated", StringComparison.Ordinal)
- helpText.Contains("experimental", StringComparison.Ordinal)
Closes #1622
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: Extract magic number to named constant
Replace magic number 5000 with named constant ProgressPrinterGracePeriodMs
in PrintProgressExecutor.DisposeAsync to improve code readability
and maintainability.
Closes #1618
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0812a77 commit ed2aa1d
2 files changed
Lines changed: 8 additions & 5 deletions
File tree
- src/ModularPipelines/Engine/Executors
- tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator/Scrapers/Cli
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
44 | | - | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
63 | | - | |
| 68 | + | |
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
452 | | - | |
| 451 | + | |
453 | 452 | | |
454 | 453 | | |
455 | 454 | | |
| |||
460 | 459 | | |
461 | 460 | | |
462 | 461 | | |
463 | | - | |
464 | 462 | | |
465 | 463 | | |
466 | 464 | | |
| |||
0 commit comments