OSSHelp / drone-linter

Linter plugin for Drone CI

Home Page:https://hub.docker.com/r/osshelp/drone-linter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drone-linter

Build Status

About

The image is used in Drone CI builds for lint tests.

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)'

Internal usage

For internal purposes and OSSHelp customers we have an alternative image url:

  image: oss.help/drone/linter

There is no difference between the DockerHub image and the oss.help/drone image.

Linters documentations

TODO

  • add warnings for disabled linters (skip_ options)

About

Linter plugin for Drone CI

https://hub.docker.com/r/osshelp/drone-linter

License:GNU General Public License v3.0


Languages

Language:Shell 78.1%Language:Dockerfile 21.9%