Skip to content

Merge commit from fork #5961

Merge commit from fork

Merge commit from fork #5961

Workflow file for this run

---
name: Lint Code Base
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
packages: read
statuses: write
jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
# A patch release in go.mod stops setup-go from picking the latest one
- name: Reject Go patch releases in go.mod
run: |
if git ls-files -z '*go.mod' | xargs -0 grep -nE '^(toolchain |go [0-9]+\.[0-9]+\.)'; then
echo "::error::Use the minor version only (go mod edit -go=1.N -toolchain=none)"
exit 1
fi
- name: Lint Code Base
uses: super-linter/super-linter/slim@2da136927bd4a73596db63044b504547c62cb854 # v9.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: /
MARKDOWN_CONFIG_FILE: .markdown-lint.yaml
# Dependabot rewrites vcpkg.json in its own style (expanded arrays, no final newline)
FILTER_REGEX_EXCLUDE: (docs/(cn|es|fr|ja|pt-br|ru|tr)/|vcpkg\.json$)
VALIDATE_CPP: false
VALIDATE_JSCPD: false
VALIDATE_GO: false
VALIDATE_GO_MODULES: false
VALIDATE_PHP_PHPCS: false
VALIDATE_PHP_PHPSTAN: false
VALIDATE_PHP_PSALM: false
VALIDATE_TERRAGRUNT: false
VALIDATE_DOCKERFILE_HADOLINT: false
VALIDATE_TRIVY: false
# Prettier, Biome and StandardJS are incompatible
VALIDATE_JAVASCRIPT_PRETTIER: false
VALIDATE_TYPESCRIPT_PRETTIER: false
VALIDATE_BIOME_FORMAT: false
VALIDATE_BIOME_LINT: false
# Conflicts with MARKDOWN
VALIDATE_MARKDOWN_PRETTIER: false
# To re-enable when https://github.com/super-linter/super-linter/issues/7466 will be closed
VALIDATE_SPELL_CODESPELL: false