generated from shgysk8zer0/npm-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
111 lines (103 loc) · 2.97 KB
/
super-linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
###########################
###########################
## Linter GitHub Actions ##
###########################
###########################
name: Lint Code Base
#
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
#
#############################
# Start the job on all push #
#############################
on:
push:
branches:
- 'master'
- release/*
pull_request:
branches:
- master
- release/*
paths-ignore:
- '**/*.js' # Disable since ESLint is used and v9 config is incompatible
- '**/*.mjs'
- '**/*.cjs'
- '**/*.min.js'
###############
# Set the Job #
###############
jobs:
build:
strategy:
fail-fast: false
# matrix:
# language:
# Name the Job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write
##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0
################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: super-linter/super-linter@v7.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DEFAULT_BRANCH: master
# DEFAULT_WORKSPACE:
# ANSIBLE_DIRECTORY:
# ACTIONS_RUNNER_DEBUG: true
VALIDATE_ALL_CODEBASE: false
IGNORE_GENERATED_FILES: true
IGNORE_GITIGNORED_FILES: true
SUPPRESS_POSSUM: true
LOG_LEVEL: ERROR
LINTER_RULES_PATH: './'
EDITORCONFIG_FILE_NAME: '.editorconfig'
# JAVASCRIPT_ES_CONFIG_FILE: 'eslint.config.js'
CSS_FILE_NAME: '.stylelintrc.json'
# Valate Languages - Uncomment to Enable
# JS/TS/JSON Disabled until ESLint in super-linter is updated
# VALIDATE_HTML: true
VALIDATE_CSS: true
# VALIDATE_JAVASCRIPT_ES: true
# VALIDATE_JAVASCRIPT_STANDARD: true
# VALIDATE_JSON: true
# VALIDATE_XML: true
VALIDATE_MARKDOWN: true
VALIDATE_YAML: true
# VALIDATE_TYPESCRIPT_ES: true
# VALIDATE_TYPESCRIPT_STANDARD: true
# VALIDATE_JSX: true
# VALIDATE_TSX: true
# VALIDATE_BASH: true
# VALIDATE_PERL: true
# VALIDATE_PHP_BUILTIN: true
# VALIDATE_PYTHON: true
# VALIDATE_RUBY: true
# VALIDATE_COFFEE: true
# VALIDATE_ANSIBLE: true
# VALIDATE_DOCKER: true
# VALIDATE_GO: true
# VALIDATE_TERRAFORM: true