Skip to content

fix: use 'loader' in MyAdmin::renderAdmin() #610

fix: use 'loader' in MyAdmin::renderAdmin()

fix: use 'loader' in MyAdmin::renderAdmin() #610

Workflow file for this run

---
###########################
###########################
## 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-ignore:
# notest branches to ignore testing of partial online commits
- "notest/**"
pull_request:
branches-ignore:
# notest branches to ignore testing of partial online commits
- "notest/**"
workflow_call:
permissions:
contents: read
###############
# Set the Job #
###############
jobs:
build:
# Name the Job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest
# Limit the running time
timeout-minutes: 10
##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v6
with:
# Fetch all history for all branches and tags. Otherwise github.event.pull_request.base.ref SHA isn't found.
fetch-depth: 0
# git credentials are needed later, `false` would be safer: token not left in git config
persist-credentials: true
- name: Remove composer.json files (to prevent invoking composer within super-linter later than super-linter/super-linter/slim@v7.2.1)
# only if any composer.json exists
if: ${{ hashFiles('**/composer.json') != '' }}
shell: bash
run: |
set -eo pipefail
find . -type f -name composer.json -delete
################################
# Run Linter against code base #
################################
- name: Lint Code Base
# slim (instead of main) is used for sake of efficiency as these linters are not used in PHP anyway: Rustfmt, Rust Clippy, Azure Resource Manager Template Toolkit (arm-ttk), PSScriptAnalyzer, dotnet (.NET) commands and subcommands.
uses: super-linter/super-linter/slim@v8.5.0
env:
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.yml
VALIDATE_ANSIBLE: false
VALIDATE_BIOME_FORMAT: false
VALIDATE_BIOME_LINT: false
VALIDATE_CSS: false
# TODO 211017 returns false positive `unknown Webhook event "workflow_call"`
VALIDATE_GITHUB_ACTIONS: false
# TODO 211003 returns false positive: {"line":" <li><a href=\"https://www.linkedin.com/company/MYCMSPROJECTSPECIFIC\" title=\"{=\"MYCMSPROJECTSPECIFIC na LinkedIn\"|translate}\"><i class=\"fa fa-linkedin\" aria-hidden=\"true\"></i></a></li>","lineNumber":56,"offender":"linkedin.com/company/MYCMSPROJECTSPECIFIC","offenderEntropy":-1,"commit":"","repo":"","repoURL":"","leakURL":"","rule":"LinkedIn Secret Key","commitMessage":"","author":"","email":"","file":".","date":"0001-01-01T00:00:00Z","tags":"secret, LinkedIn"}
VALIDATE_GITLEAKS: false
# Prettier is applied anyway and I don't want to have `.eslintrc.yml` configured
VALIDATE_JAVASCRIPT_ES: false
# 240803, there's no way to configure JAVASCRIPT_PRETTIER, neither it shows what exactly an issue is. Just 'Code style issue found in file.', which is useless.
VALIDATE_JAVASCRIPT_PRETTIER: false
#VALIDATE_JAVASCRIPT_STANDARD: false
# TODO VALIDATE_JSCPD later
VALIDATE_JSCPD: false
# PHPStan run in matrix strategy in php-composer-phpunit.yml
VALIDATE_PHP_PHPSTAN: false
VALIDATE_PHP_PSALM: false
# 240519 .shfmt is not taken into account, so far
VALIDATE_SHELL_SHFMT: false
# Let's leave SPELL_CODESPELL to seablast-actions, where it is configurable
VALIDATE_SPELL_CODESPELL: false