Skip to content

[feature/capgen-v1] Enforce 132-character line-length limit for scheme Fortran, warn for host Fortran - #794

Merged
dustinswales merged 5 commits into
NCAR:feature/capgen-v1from
climbfuji:feature/132linelength
Nov 4, 2026
Merged

dustinswales merged 5 commits into
NCAR:feature/capgen-v1from
climbfuji:feature/132linelength

Conversation

@climbfuji

Copy link
Copy Markdown
Collaborator

Description

Implement option B described in #788.

Scheme Fortran is now restricted to a line width of 132 characters; for host Fortran, it is currently a warning - can be changed to an error in a single place (see changed files).

Host and scheme developers are free to adopt and enforce shorter line length using their own formatter/linter.

User interface changes?: No

Closes #788

Testing: added unit tests that check for 132 character line-length limits; all tests pass.

@climbfuji climbfuji self-assigned this Oct 23, 2026
Comment thread capgen/ccpp_validator.py Resolved
@climbfuji climbfuji changed the title Enforce 132-character line-length limit for scheme Fortran, warn for host Fortran [feature/capgen-v1] Enforce 132-character line-length limit for scheme Fortran, warn for host Fortran Oct 23, 2026
@climbfuji
climbfuji marked this pull request as ready for review October 23, 2026 14:04
@climbfuji
climbfuji requested review from a team as code owners October 23, 2026 14:04
@climbfuji climbfuji added the capgen bugs, requests, etc. that involve ccpp_capgen label Oct 23, 2026

@scrasmussen scrasmussen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me and thanks for updating the documentation as well!

@peverwhee peverwhee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @climbfuji !

a couple small questions/requests.

Comment thread capgen/ccpp_validator.py Resolved
Comment thread capgen/ccpp_validator.py Resolved
@climbfuji
climbfuji force-pushed the feature/132linelength branch from b7ef294 to fd43e6f Compare October 29, 2026 18:00
@climbfuji
climbfuji requested a review from peverwhee October 29, 2026 18:01

@peverwhee peverwhee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @climbfuji !

@climbfuji

Copy link
Copy Markdown
Collaborator Author

@dustinswales Ready for your review and merging if it all looks good to you.

@dustinswales
dustinswales merged commit 1959c30 into NCAR:feature/capgen-v1 Nov 4, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capgen bugs, requests, etc. that involve ccpp_capgen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants