Skip to content

Initialize line split fixes following Catalyst.jl PR #1306 #663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

ChrisRackauckas
Copy link
Member

Summary

Initialize fixing unnecessary line splits in Julia code following the guidelines established in Catalyst.jl PR #1306. This PR sets up the framework for improving code readability by consolidating short expressions that are unnecessarily split across multiple lines.

Background

These formatting issues are being addressed upstream in JuliaFormatter.jl PR #934, which implements algorithmic fixes to prevent these unnecessary line splits. However, since that PR is not yet merged, manual fixes are needed in the meantime to improve code readability.

Current Status

This PR creates the branch and initial framework. Additional commits will be added to fix specific instances of problematic line splits found in the codebase.

Rationale

Following Catalyst.jl PR #1306's approach:

  • Prioritize readability over strict formatter rules for short expressions
  • Keep semantically related code units together
  • Keep lines under reasonable character limits
  • Use JuliaFormatter as a helpful tool rather than a strict rule enforcer

Note

This is part of a systematic effort to apply the same formatting improvements across multiple SciML repositories including JumpProcesses.jl, OrdinaryDiffEq.jl, LinearSolve.jl, and ModelingToolkit.jl.

🤖 Generated with Claude Code

This commit creates the branch for fixing line splits following
Catalyst.jl PR #1306 guidelines. Further fixes to be added.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas deleted the fix-formatter-line-splits branch August 1, 2025 11:42
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.

2 participants