Skip to content

Commit

Permalink
Add .editorconfig file (openPMD#762)
Browse files Browse the repository at this point in the history
This is a widely supported format for basic IDE/editor settings that
we care about. Will most of the time be auto-recognized by tools,
others have plugins.

https://editorconfig.org
  • Loading branch information
ax3l authored Jul 12, 2020
1 parent 0eede24 commit 166abff
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# http://EditorConfig.org
#
# precedence of rules is bottom to top

# this is the top-most EditorConfig file
root = true


[*]
# 4 space indentation
indent_style = space
indent_size = 4

# no end of line whitespaces
trim_trailing_whitespace = true

# unix-style newlines
end_of_line = lf

# newline ending in files
insert_final_newline = true


[*.md]
# two end of line whitespaces are newlines without a paragraph
trim_trailing_whitespace = false


[Makefile]
# TABs are part of its syntax
indent_style = tab
indent_size = unset
2 changes: 1 addition & 1 deletion .github/workflows/source/hasNonASCII
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
ok=0

pattern="\.c$|\.cpp$|\.F90$|\.h$|\.H$|\.ini$|\.py$|"\
"\.rst$|\.sh$|\.tex$|\.txt$|\.xml$|\.yml$|"\
"\.rst$|\.sh$|\.tex$|\.txt$|\.xml$|\.yml$|\.yaml$|"\
"CMakeLists\.txt|inputs"

for i in $(find . \
Expand Down

0 comments on commit 166abff

Please sign in to comment.