mirror of
https://github.com/Radarr/Radarr
synced 2026-01-26 01:12:11 +01:00
- SonarCloud: add proper projectKey and organization - Trivy: fix image reference, add schedule comment - Super Linter: upgrade to v6, configure linter selection - Add Dependabot for NuGet, npm, Docker, GitHub Actions
42 lines
1 KiB
YAML
42 lines
1 KiB
YAML
# Super Linter for code quality checks on changed files
|
|
# https://github.com/super-linter/super-linter
|
|
|
|
name: Lint Code Base
|
|
|
|
on:
|
|
push:
|
|
branches: [develop, main]
|
|
pull_request:
|
|
branches: [develop]
|
|
|
|
permissions:
|
|
contents: read
|
|
statuses: write
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Lint Code Base
|
|
uses: super-linter/super-linter/slim@v6
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
DEFAULT_BRANCH: develop
|
|
VALIDATE_ALL_CODEBASE: false
|
|
# C# linting handled by dotnet build
|
|
VALIDATE_CSHARP: false
|
|
# TypeScript/JavaScript
|
|
VALIDATE_TYPESCRIPT_ES: true
|
|
VALIDATE_JAVASCRIPT_ES: true
|
|
# Config files
|
|
VALIDATE_YAML: true
|
|
VALIDATE_JSON: true
|
|
VALIDATE_DOCKERFILE_HADOLINT: true
|
|
# Disable noisy linters
|
|
VALIDATE_JSCPD: false
|
|
VALIDATE_NATURAL_LANGUAGE: false
|