Skip to content

OSSHelp/drone-linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)