From 5507521379bafef1dd343534d9097a97d76d020a Mon Sep 17 00:00:00 2001 From: Aire-One Date: Tue, 6 Aug 2024 03:39:33 +0200 Subject: [PATCH] ci: add lint pipeline --- .editorconfig | 2 +- .hadolint.yaml | 4 ++++ .woodpecker/lint.yml | 26 ++++++++++++++++++++++++++ cspell.json | 18 ++++++++++++++++++ settings.json | 2 +- 5 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 .hadolint.yaml create mode 100644 .woodpecker/lint.yml create mode 100644 cspell.json diff --git a/.editorconfig b/.editorconfig index 71ca37d..77780ae 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,5 +11,5 @@ charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true -[*.json] +[*.{json,yml}] indent_size = 2 diff --git a/.hadolint.yaml b/.hadolint.yaml new file mode 100644 index 0000000..64a262a --- /dev/null +++ b/.hadolint.yaml @@ -0,0 +1,4 @@ +--- + +ignored: + - DL3018 # warning: Pin versions in apk add. Instead of `apk add ` use `apk add =` diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 0000000..8c51ae5 --- /dev/null +++ b/.woodpecker/lint.yml @@ -0,0 +1,26 @@ +--- + +when: + event: pull_request + +steps: + woodpecker: + image: woodpeckerci/woodpecker-cli:v2.7.0-alpine + commands: + - woodpecker-cli lint .woodpecker/*.yml + when: + path: .woodpecker/**/*.yml + depends_on: [] + + dockerfile: + image: ghcr.io/hadolint/hadolint:v2.12.0 + when: + path: + - Dockerfile + depends_on: [] + + cspell: + image: ghcr.io/streetsidesoftware/cspell:8.13.1 + commands: + - /usr/local/bin/cspell-cli lint . + depends_on: [] diff --git a/cspell.json b/cspell.json new file mode 100644 index 0000000..54cb52f --- /dev/null +++ b/cspell.json @@ -0,0 +1,18 @@ +{ + "words": [ + "Aire", + "aireone", + "buildx", + "datasource", + "Dockerfiles", + "gettext", + "gitea", + "INOTIFY", + "libcurl", + "libgcc", + "libintl", + "libstdc", + "WERROR", + "woodpeckerci" + ] +} diff --git a/settings.json b/settings.json index a118a86..7d09c51 100644 --- a/settings.json +++ b/settings.json @@ -54,7 +54,7 @@ "rpc-port": 9091, "rpc-socket-mode": "0750", "rpc-url": "/transmission/", - "rpc-username": "tdkim", + "rpc-username": "transmission-daemon", "rpc-whitelist": "127.0.0.1,::1", "rpc-whitelist-enabled": false, "scrape-paused-torrents-enabled": true,