forked from GEOS-ESM/MAPL
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.editorconfig
More file actions
46 lines (39 loc) · 1.14 KB
/
.editorconfig
File metadata and controls
46 lines (39 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Global Editor Config for MAPL
#
# This is an ini style configuration. See http://editorconfig.org/ for more information on this file.
#
# Top level editor config.
root = true
# Always use Unix style new lines with new line ending on every file and trim whitespace
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Fortran: 3 spaces for indentation and max line length of 132 characters
# Note: .pf files are Fortran
[{*.f90,*.F90,*.pf}]
indent_style = space
indent_size = 3
max_line_length = 132
# Fortran Include files: 3 spaces for indentation and max line length of 132 characters
# Note: In MAPL, .H and .h files are almost always Fortran and not C code
[{*.inc,*.H,*.h}]
indent_style = space
indent_size = 3
max_line_length = 132
# Python: PEP8 defines 4 spaces for indentation
[*.py]
indent_style = space
indent_size = 4
# YAML format, 2 spaces
[{*.yaml,*.yml}]
indent_style = space
indent_size = 2
# CMake (from KitWare: https://github.com/Kitware/CMake/blob/master/.editorconfig)
[{CMakeLists.txt,*.cmake,*.rst}]
indent_style = space
indent_size = 2
# Markdown
[*.md]
trim_trailing_whitespace = true
indent_style = space