Skip to content

Commit

Permalink
Merge pull request #45 from DSD-DBS/editorconfig
Browse files Browse the repository at this point in the history
lint: add .editorconfig for universal linting
  • Loading branch information
tklockau authored Sep 20, 2023
2 parents 43d7868 + a886433 commit 79c79e6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright DB Netz AG and contributors
# SPDX-License-Identifier: Apache-2.0

# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf # lf = \n, crlf = \r\n
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

# no whitespace trimming in Markdown
[*.md]
max_line_length = 0
trim_trailing_whitespace = false

# windows shell scripts shall get the Carriage-Return-Line-Feed (\r\n) line ending
[{*.bat,*.cmd}]
end_of_line = crlf

0 comments on commit 79c79e6

Please sign in to comment.