Sign inSign up

osshelp/drone-linter

By osshelp

Updated over 1 year ago

Plugin for Drone CI with various linters inside

Image
1

9.4K

osshelp/drone-linter repository overview

Description

The image is a plugin for Drone CI and contains following linters:

  • hadolint (Dockerfile)
  • shellcheck (bash scripts)
  • yamllint (yaml)
  • flake8 (python scripts)
  • markdownlint (markdown)
  • jsonlint (JSON files)

Usage examples

Find and lint files automatically
steps:
  - name: lint
    image: osshelp/drone-linter
Specific files to check
steps:
  - name: lint
    image: osshelp/drone-linter
    settings:
      yml_files:
        - file1.yml
        - dir/file2.yml
      sh_files:
        - entrypoint.sh
      dockerfiles:
        - Dockerfile
      markdown_files:
        - README.md
      python_files:
        - test.py
      json_files:
        - file.json
Skip checks
steps:
  - name: lint
    image: osshelp/drone-linter
    settings:
      skip_yml: true
      skip_sh: true
      skip_dockerfile: true
      skip_markdown: true
      skip_python: true
      skip_json: true
Exclude files by exclude_regex
steps:
  - name: lint
    image: osshelp/drone-linter
    settings:
      exclude_regex: '(regex1|regex2)'

Linters documentations

Sources

Source repository is available at Github here.

License

GPL3

Author

OSSHelp Team, see https://oss.help

Tag summary

Content type

Image

Digest

sha256:7f89165f6

Size

48.4 MB

Last updated

over 1 year ago

docker pull osshelp/drone-linter