2021-09-29 23:08:51 +03:00
---
2021-10-01 13:09:20 +03:00
# vi: ts=2 sw=2 et:
2021-10-01 13:10:22 +03:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2021-09-29 23:08:51 +03:00
# https://github.com/marketplace/actions/super-linter
name : Lint Code Base
on :
pull_request :
branches :
- main
2021-11-12 19:37:15 +03:00
- v[0-9]+-stable
2021-09-29 23:08:51 +03:00
2021-11-14 01:34:04 +03:00
permissions :
contents : read
2021-11-13 17:40:20 +03:00
2021-09-29 23:08:51 +03:00
jobs :
build :
name : Lint Code Base
runs-on : ubuntu-latest
2021-11-10 18:45:12 +03:00
concurrency :
group : ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress : true
2021-09-29 23:08:51 +03:00
steps :
- name : Repo checkout
2021-11-13 12:36:24 +03:00
uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
2021-09-29 23:08:51 +03:00
with :
# We need a full repo clone
fetch-depth : 0
- name : Lint Code Base
2022-02-13 16:54:51 +03:00
uses : github/super-linter/slim@b8641364ca9a79b3cf07f3c4c59a82709cd39094
2021-09-29 23:08:51 +03:00
env :
DEFAULT_BRANCH : main
2022-02-13 16:59:08 +03:00
MULTI_STATUS : false
2021-09-29 23:08:51 +03:00
# Excludes:
# - man/.* - all snippets in man pages (false positives due to
# missing shebangs)
# - kernel-install/.* - false-positives for dropins (and I'm afraid
# to touch kernel-install)
# - .*\.(in|SKELETON) - all template/skeleton files
# - tools/coverity\.sh - external file (with some modifications)
FILTER_REGEX_EXCLUDE : .*/(man/.*|src/kernel-install/.*|.*\.(in|SKELETON)|tools/coverity\.sh)$
VALIDATE_ALL_CODEBASE : false
VALIDATE_BASH : true
2022-02-08 20:34:10 +03:00
VALIDATE_GITHUB_ACTIONS : true