Skip to content

Commit

Permalink
feat: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
DarrenOfficial committed Mar 4, 2024
1 parent 9f04921 commit a33598c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .woodpecker/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
when:
- event: [pull_request, tag, cron]
- event: push
branch:
- develop
- master
- renovate/*

steps:
lint-dockerfile:
image: hadolint/hadolint:v2.12.1-beta-alpine
commands:
- hadolint Dockerfile
when:
path: "Dockerfile"

lint-shell:
image: koalaman/shellcheck-alpine:latest # not maintained semver version as of 2023-10
group: lint-build
commands:
- shellcheck *.sh
when:
path: "*.sh"

lint-markdown:
image: davidanson/markdownlint-cli2:v0.12.1
commands:
- "markdownlint-cli2 *.{md,markdown}"
when:
path: "*.{md,markdown}"

0 comments on commit a33598c

Please sign in to comment.