Skip to content

Enhance formatting and repair capabilities in NuShell#124

Merged
fdncred merged 1 commit intomainfrom
batch_fix_issues2
Mar 26, 2026
Merged

Enhance formatting and repair capabilities in NuShell#124
fdncred merged 1 commit intomainfrom
batch_fix_issues2

Conversation

@fdncred
Copy link
Contributor

@fdncred fdncred commented Mar 26, 2026

Description of changes

Another big batch incoming.

  • Introduced new logic to preserve explicit parentheses in subexpressions, especially in precedence-sensitive contexts.
  • Added functionality to allow compact inline record styles for malformed records.
  • Implemented detection and repair for compact if-else statements and missing commas in records.
  • Improved deduplication of discovered Nu files to prevent overlapping paths.
  • Updated tests to cover various edge cases, including handling of comments, subexpressions, and record formatting.
  • Added new fixtures for issues related to formatting and parsing errors.

Relevant Issues

closes #122
closes #121
closes #120
closes #119
closes #118
closes #117
closes #116
closes #115
closes #114
closes #113
closes #112
closes #111
closes #110
closes #109
closes #108
closes #107
closes #106
closes #105

- Introduced new logic to preserve explicit parentheses in subexpressions, especially in precedence-sensitive contexts.
- Added functionality to allow compact inline record styles for malformed records.
- Implemented detection and repair for compact if-else statements and missing commas in records.
- Improved deduplication of discovered Nu files to prevent overlapping paths.
- Updated tests to cover various edge cases, including handling of comments, subexpressions, and record formatting.
- Added new fixtures for issues related to formatting and parsing errors.
@fdncred fdncred merged commit 7c5aead into main Mar 26, 2026
5 checks passed
@fdncred fdncred deleted the batch_fix_issues2 branch March 26, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment