Skip to content

Format code with improved line breaks and add oxfmt config#77

Merged
bartveneman merged 4 commits intomainfrom
claude/add-oxfmt-formatter-5UUKT
Mar 12, 2026
Merged

Format code with improved line breaks and add oxfmt config#77
bartveneman merged 4 commits intomainfrom
claude/add-oxfmt-formatter-5UUKT

Conversation

@bartveneman
Copy link
Member

This PR improves code formatting consistency across the codebase and adds configuration for the oxfmt formatter.

Summary

Applied formatting improvements to enhance code readability by breaking long lines into multiple lines, particularly in function calls and array operations. Added oxfmt configuration file to standardize formatting rules.

Key Changes

  • Code formatting: Reformatted several files to break long lines into multiple lines for better readability:

    • src/cli/reporters/pretty.ts: Split long array joins and function calls across multiple lines
    • src/lib/index.ts: Reformatted reduce() calls with proper line breaks
    • src/lib/index.test.ts: Improved formatting of test expectations
    • src/cli/reporters/json.ts: Enhanced readability of filter logic
    • package.json: Reorganized keywords in alphabetical order
  • Configuration: Added .oxfmtrc.json with formatting preferences:

    • Tab indentation
    • Single quotes
    • No semicolons
    • Empty ignore patterns
  • File endings: Fixed missing newlines in configuration files (.oxlintrc.json, .prettierrc, .vscode/settings.json)

Implementation Details

The formatting changes maintain functional equivalence while improving code readability through strategic line breaks in complex expressions. The oxfmt configuration ensures consistent formatting standards across the project going forward.

https://claude.ai/code/session_018pu9kBHwmA9L7YnAk3SjXg

- Add oxfmt as dev dependency and run --init to create .oxfmtrc.json
- Configure oxfmt with tabs, single quotes, and no semicolons
- Add oxfmt --check to the lint script alongside oxlint
- Add oxc dependency group in dependabot.yml to update oxlint and oxfmt together
- Format all files with oxfmt

https://claude.ai/code/session_018pu9kBHwmA9L7YnAk3SjXg
@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 92.50000% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.49%. Comparing base (47f0d24) to head (2769ec2).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/cli/reporters/pretty.ts 86.56% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #77      +/-   ##
==========================================
- Coverage   96.93%   96.49%   -0.45%     
==========================================
  Files          14       14              
  Lines         947     1026      +79     
  Branches      117      118       +1     
==========================================
+ Hits          918      990      +72     
- Misses         27       34       +7     
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codecov-commenter
Copy link

Bundle Report

Bundle size has no change ✅

claude and others added 3 commits March 11, 2026 22:51
Fixtures are test snapshots that should not be reformatted.
Add src/lib/test/fixtures/** to oxfmt ignorePatterns.

https://claude.ai/code/session_018pu9kBHwmA9L7YnAk3SjXg
@bartveneman bartveneman merged commit 3941a07 into main Mar 12, 2026
7 checks passed
@bartveneman bartveneman deleted the claude/add-oxfmt-formatter-5UUKT branch March 12, 2026 13:58
@bartveneman bartveneman mentioned this pull request Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants