A WoodpeckerCI plugin for yamllint to lint yaml files. https://hub.docker.com/r/kokuwaio/yamllint
Find a file
2025-03-17 10:02:58 +00:00
.github/workflows Initial plugin source. 2025-02-08 22:06:11 +01:00
.woodpecker Update dependency adrienverge/yamllint to v1.36.2 2025-03-17 10:02:58 +00:00
.hadolint.yaml Initial plugin source. 2025-02-08 22:06:11 +01:00
.justfile Initial plugin source. 2025-02-08 22:06:11 +01:00
.markdownlint.yaml Initial plugin source. 2025-02-08 22:06:11 +01:00
.yamllint.yaml Initial plugin source. 2025-02-08 22:06:11 +01:00
Dockerfile Update dependency adrienverge/yamllint to v1.36.2 2025-03-17 10:02:58 +00:00
Dockerfile.dockerignore Initial plugin source. 2025-02-08 22:06:11 +01:00
entrypoint.sh Initial plugin source. 2025-02-08 22:06:11 +01:00
LICENSE Initial plugin source. 2025-02-08 22:06:11 +01:00
README.md Initial plugin source. 2025-02-08 22:06:11 +01:00
renovate.json Initial plugin source. 2025-02-08 22:06:11 +01:00

Yamllint Plugin

pulls size dockerfile license issues

A Woodpecker CI plugin for yamllint to lint yaml files. Also usable with Gitlab, Github or locally, see examples for usage.

Features

  • preconfigure yamllint parameters
  • searches for yaml files recursive
  • runnable with local docker daemon

Example

Woodpecker:

steps:
  yamllint:
    image: kokuwaio/yamllint
    depends_on: []
    settings:
      no-warnings: true
      format: json
    when:
      event: pull_request
      path: [.yamllint.yaml, "**/*.y*ml"]

Gitlab:

yamllint:
  stage: lint
  needs: []
  image: kokuwaio/yamllint
  variables:
    PLUGIN_NO_WARNINGS: true
    PLUGIN_FORMAT: json
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
      changes: [.yamllint.yaml, "**/*.y*ml"]

CLI:

docker run --rm --volume=$(pwd):$(pwd):ro --workdir=$(pwd) kokuwaio/yamllint --no-warnings --format=json

Settings

Settings Name Environment Default Description
config-file PLUGIN_CONFIG_FILE none Configuration file to use, if none is configured default is used
strict PLUGIN_STRICT true Fail on warnings
no-warnings PLUGIN_NO_WARNINGS false Output only error level problems
format PLUGIN_FORMAT colored Format for parsing output: parsable, standard, colored, github, auto

Alternatives

Image Comment amd64 arm64
kokuwaio/yamllint Woodpecker plugin size size
pipelinecomponents/yamllint not a Woodpecker plugin size size
giantswarm/yamllint not a Woodpecker plugin size size
cytopia/yamllint not a Woodpecker plugin, outdated size size
sdesbure/yamllint not a Woodpecker plugin, outdated size size