feat: added editorconfig

This commit is contained in:
Tobias Schmidl 2023-09-13 17:24:52 +02:00
parent f47146583e
commit ee0358dcf5
3 changed files with 30 additions and 0 deletions

22
.editorconfig Normal file
View file

@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{yaml,yml}]
indent_size = 2
[Makefile]
indent_style = tab

View file

@ -16,4 +16,8 @@ repos:
rev: v2.1.0 rev: v2.1.0
hooks: hooks:
- id: reuse - id: reuse
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: '2.7.2'
hooks:
- id: editorconfig-checker
... ...

View file

@ -14,6 +14,8 @@ org.opencontainers.image.title=buildimage \
org.opencontainers.image.source="https://git.schmidl.dev/schtobia/buildimage" \ org.opencontainers.image.source="https://git.schmidl.dev/schtobia/buildimage" \
org.opencontainers.image.url="https://git.schmidl.dev/schtobia/buildimage" org.opencontainers.image.url="https://git.schmidl.dev/schtobia/buildimage"
# editorconfig-checker-disable
RUN apt update \ RUN apt update \
&& apt install --assume-yes --no-install-recommends \ && apt install --assume-yes --no-install-recommends \
build-essential \ build-essential \
@ -21,6 +23,8 @@ RUN apt update \
git \ git \
&& find /var/lib/apt -type f -delete && find /var/lib/apt -type f -delete
# editorconfig-checker-enable
RUN useradd -rm builder RUN useradd -rm builder
USER builder USER builder