From 16673a9e1a2de9f1850e96456ce70d98332f7d5e Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Thu, 5 Oct 2023 14:26:09 +0200 Subject: [PATCH] feat: added woodpecker config, added .ecrc --- .ecrc | 4 ++++ .ecrc.license | 3 +++ .pre-commit-config.yaml | 8 ++++++-- .woodpecker.yml | 20 ++++++++++++++++++++ 4 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .ecrc create mode 100644 .ecrc.license create mode 100644 .woodpecker.yml diff --git a/.ecrc b/.ecrc new file mode 100644 index 0000000..1dc83fd --- /dev/null +++ b/.ecrc @@ -0,0 +1,4 @@ +{ + "IgnoreDefaults": false, + "Exclude": ["^LICENSE$", "^LICENSES/.*"] +} diff --git a/.ecrc.license b/.ecrc.license new file mode 100644 index 0000000..40c3dca --- /dev/null +++ b/.ecrc.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 Tobias Schmidl + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c91322e..ee7500e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,6 +29,10 @@ repos: - repo: https://github.com/compilerla/conventional-pre-commit rev: v2.4.0 hooks: - - id: conventional-pre-commit - stages: [commit-msg] + - id: conventional-pre-commit + stages: [commit-msg] +- repo: https://git.schmidl.dev/schtobia/woodpecker-lint + rev: 1.0.0 + hooks: + - id: woodpecker-lint ... diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..5ac022a --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2023 Tobias Schmidl +# +# SPDX-License-Identifier: GPL-3.0-or-later + +--- +steps: + shellcheck: + group: lint + image: registry.gitlab.com/pipeline-components/shellcheck + commands: + - find . -name .git -type d -prune -o -type f -name \*.sh -print0 | xargs -0 -r -n1 shellcheck -e SC2015 + + editor-config: + image: mstruebing/editorconfig-checker + group: lint + + reuse: + image: fsfe/reuse:latest + group: lint +...