ci: add lint pipeline
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pull_request_closed/build Pipeline was successful Details

This commit is contained in:
Aire-One 2024-08-06 03:39:33 +02:00
parent 86c32bed0b
commit 5507521379
5 changed files with 50 additions and 2 deletions

View File

@ -11,5 +11,5 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.json]
[*.{json,yml}]
indent_size = 2

4
.hadolint.yaml Normal file
View File

@ -0,0 +1,4 @@
---
ignored:
- DL3018 # warning: Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`

26
.woodpecker/lint.yml Normal file
View File

@ -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: []

18
cspell.json Normal file
View File

@ -0,0 +1,18 @@
{
"words": [
"Aire",
"aireone",
"buildx",
"datasource",
"Dockerfiles",
"gettext",
"gitea",
"INOTIFY",
"libcurl",
"libgcc",
"libintl",
"libstdc",
"WERROR",
"woodpeckerci"
]
}

View File

@ -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,