@@ -15,23 +15,23 @@ This style guide is a living document and proposed changes may be adopted after
15
15
16
16
## File naming conventions
17
17
18
- * Source files should contain at most one ` program ` , ` module ` , or ` submodule ` .
19
- * The filename should match the program or module name and have the file extension ` .f90 ` or ` .F90 ` if preprocessing is required.
18
+ * Source files should contain at most one ` program ` , ` module ` , or ` submodule `
19
+ * The filename should match the program or module name and have the file extension ` .f90 ` or ` .F90 ` if preprocessing is required
20
20
* If the interface and implementation is split using submodules the implementation submodule file should have the same name as the
21
- interface (parent) module but end in ` _implementation ` .
21
+ interface (parent) module but end in ` _implementation `
22
22
E.g., ` string_class.f90 ` and ` string_class_implementation.f90 `
23
23
* Tests should be added in the ` tests ` subdirectory and have the same name as the module they are testing with the ` test_ ` prefix
24
- added.
24
+ added
25
25
E.g., ` string_class.f90 ` and ` tests/test_string_class.f90 `
26
- * There should only ever be one ` program ` and ` module ` statement per file.
26
+ * There should only ever be one ` program ` and ` module ` statement per file
27
27
28
28
## Indentation & whitespace
29
29
30
30
By setting and following a convention for indentation and whitespace, code reviews and git-diffs can
31
31
focus on the semantics of the proposed changes rather than style and formatting.
32
32
33
33
* The body of every Fortran construct should be indented by __ 4 spaces__
34
- * Line length * should be limited to 80 characters* and __ must not exceed 132__ .
34
+ * Line length * should be limited to 80 characters* and __ must not exceed 132__
35
35
* Please do not use <kbd >Tab</kbd > characters for indentation
36
36
* Please remove trailing white space before committing code
37
37
0 commit comments