Skip to content

Commit

Permalink
chore: specify editorconfig style guidelines
Browse files Browse the repository at this point in the history
close #24
  • Loading branch information
redtux committed Jan 10, 2022
1 parent 91f7510 commit 951376d
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# SPDX-FileCopyrightText: 2022 Pablo Hörtner
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# Copyright © 2022 by Pablo Hörtner <redtux@pm.me>. All rights reserved.
# You can find the AGPL v3.0 here: https://www.gnu.org/licenses/agpl-3.0
# Attribution required if you use this EditorConfig file in your project.
#
# EditorConfig Style Guidelines
# @see https://EditorConfig.org

# top-most EditorConfig file
root = true

# Our default configuration:
# Unix-style newlines with a
# newline ending every file.
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true

[Dockerfile]
indent_size = 2

# Makefiles and Make Templates
[{Makefile,GNUMakefile,*.mk}]
indent_style = tab
indent_size = 4

# Markdown
[*.md]
trim_trailing_whitespace = false

# Python
[*.py]
indent_size = 4
indent_style = space

# Go
# https://golang.org/cmd/gofmt/
[{go.mod,go.sum,*.go}]
indent_style = tab
indent_size = 4

# YAML
[{*.yml,*.yaml}]
indent_size = 2

0 comments on commit 951376d

Please sign in to comment.