-
Notifications
You must be signed in to change notification settings - Fork 65
Initial configuration of Codee Fortran formatter with examples (src/*.F90)
#707
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
Open
climbfuji
wants to merge
9
commits into
NCAR:develop
Choose a base branch
from
climbfuji:feature/codee_format_initial
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,319
−3,204
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b016c99
Add initial .codee-format and temporary run_codee_tmp.sh
climbfuji 65d5c06
Codee format src/*.F90
climbfuji 43778b8
Update format
climbfuji 8d97117
Update formatting of src/ccpp_*.F90: contains now properly aligned wi…
climbfuji 889c77f
Update .codee-format, reformat src/ccpp_constituent_prop_mod.F90 and …
climbfuji 9e732dc
Simplify run_codee_tmp.sh
climbfuji 6423ab3
Revert SpacesAroundOperators:DoubleColon back to both, update src/*.F90
climbfuji 8fe727c
Merge branch 'develop' of https://github.com/NCAR/ccpp-framework into…
climbfuji 49bd409
Update .codee-format: ModuleContains is deprecated, use Contains instead
climbfuji File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| # DH* 20251208 - this initial .codee-format is | ||
| # identical to the NEPTUNE version except for | ||
| # Comments: ! IndentIfAlreadyIndented # Indent | ||
| # (in NEPTUNE, we use "Indent") | ||
|
|
||
| # For a detailed description of all options, see: | ||
| # https://docs.codee.com/formatter/style-options | ||
|
|
||
| AlignAmpersandToColumnLimit: false | ||
| AlignAssignmentOperators: true | ||
| AlignUseItems: | ||
| Kind: OneItemPerLine | ||
| FirstLineFit: FitIfPossible | ||
| BreakBeforeBinaryOperators: true | ||
| Casing: | ||
| Identifiers: Lowercase # Preserve | ||
| Keywords: Lowercase | ||
| LogicalConstants: Lowercase | ||
| LogicalOperators: Lowercase | ||
| RelationalOperators: Lowercase | ||
| UserDefinedOperators: Lowercase | ||
| ColumnLimit: 120 | ||
| CommentDirectivePrefixes: [] | ||
| DisabledDirectivePrefixes: [] | ||
| IndentSize: 2 | ||
climbfuji marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| IndentExceptions: | ||
| Contains: IndentBeforeAndAfter | ||
| Comments: Indent | ||
| FixedFormLabelAlignment: Right | ||
| ContinuationIndentSize: DoubleIndentSize | ||
| DoubleColonSeparator: AddAlways | ||
| EndOfLineNormalization: Unix # Autodetect | ||
climbfuji marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| EndStatementFormat: EndStructureAndName | ||
| EndStatementSeparation: | ||
| EndAssociate: Separated | ||
| EndBlockConstruct: Separated | ||
| EndBlockData: Separated | ||
| EndCritical: Separated | ||
| EndTeam: Separated | ||
| EndDoLoop: Separated | ||
| EndEnum: Separated | ||
| EndEnumerationType: Separated | ||
| EndForall: Separated | ||
| EndFunction: Separated | ||
| EndIf: Separated | ||
| EndInterface: Separated | ||
| EndModule: Separated | ||
| EndModuleProcedure: Separated | ||
| EndProgram: Separated | ||
| EndSelect: Separated | ||
| EndSubmodule: Separated | ||
| EndSubroutine: Separated | ||
| EndType: Separated | ||
| EndWhere: Separated | ||
| EnsureNewlineAtEOF: true | ||
| ConsecutiveEmptyLines: | ||
| MaxToKeep: 1 | ||
| BetweenProcedures: 1 | ||
| RemoveAtStartOfFile: true | ||
| RemoveAtEndOfFile: true | ||
| KindKeywordPrefix: AddAlways | ||
| # DH* TODO FILL THIS LIST | ||
| MacroIdentifiers: [ | ||
| "__FILE__", | ||
| "__LINE__", | ||
| "_OPENMP", | ||
| ] | ||
| RelationalOperators: UseSymbols | ||
| # DH* Note. Filed ticket 276 with Codee to prevent | ||
| # spaces between dimensions in dimension specifications | ||
| # like 'real, dimension(:,:,:), allocatable :: x' | ||
| SpacesAroundOperators: | ||
| LeftParenthesisExpression: NoTrailing | ||
| LeftParenthesisGeneric: NoSpaces | ||
| LeftParenthesisKeyword: OnlyLeading | ||
| RightParenthesisExpression: NoLeading | ||
| RightParenthesisGeneric: NoLeading | ||
| RightParenthesisKeyword: OnlyTrailing # NoLeading | ||
climbfuji marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Assignment: Both | ||
| Association: Both | ||
| ControlFlowAssignment: Both | ||
| KeywordAssignment: NoSpaces | ||
| ParameterAssignment: NoSpaces | ||
| BinaryArithmetic: Both | ||
| Exponentiation: NoSpaces | ||
| DefinedBinary: Both | ||
| DefinedUnary: NoTrailing | ||
| Relational: Both | ||
| RelationalLegacy: Both | ||
| LogicalBinary: Both | ||
| LogicalNot: NoTrailing | ||
| UnaryPlusMinus: NoTrailing | ||
| Comma: OnlyTrailing | ||
| Concat: Both | ||
| DoubleColon: Both | ||
| RemoveConsecutiveWhitespace: true | ||
| RemoveSemicolons: true | ||
| RemoveTrailingWhitespace: true | ||
| SeparateMultipleInlineStatements: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| files=( | ||
| "src/ccpp_constituent_prop_mod.F90" | ||
| "src/ccpp_hashable.F90" | ||
| "src/ccpp_hash_table.F90" | ||
| "src/ccpp_scheme_utils.F90" | ||
| "src/ccpp_types.F90" | ||
| ) | ||
|
|
||
| for entry in "${files[@]}"; do | ||
dustinswales marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| file=${entry} | ||
| git checkout origin/develop -- $file | ||
| codee format --verbose --on-error force $file | ||
| echo "" | ||
| echo "-------------------------------------------------" | ||
| done | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.