chore: linting updates, fixes (#85)

* chore: linting fixes

* chore(deps): update github workflows

* fix(ci): pr-lint permissions

* fix(ci): add missing UID

* fix(ci): pr-lint permissions

* fix(ci): cr tweak
This commit is contained in:
2025-11-28 16:49:12 +02:00
committed by GitHub
parent a8a78c98e7
commit 35634af17e
10 changed files with 41 additions and 42 deletions

View File

@@ -14,4 +14,3 @@ max_line_length = 120
# Markdown files
[*.md]
max_line_length = 200

View File

@@ -12,6 +12,7 @@ A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
@@ -24,11 +25,13 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]

View File

@@ -1,14 +1,14 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: 'CodeQL'
name: "CodeQL"
on:
push:
branches: ['main']
branches: ["main"]
pull_request:
branches: ['main']
branches: ["main"]
schedule:
- cron: '30 1 * * 0' # Run at 1:30 AM UTC every Sunday
- cron: "30 1 * * 0" # Run at 1:30 AM UTC every Sunday
merge_group:
permissions:
@@ -43,4 +43,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
with:
category: '/language:${{matrix.language}}'
category: "/language:${{matrix.language}}"

View File

@@ -20,11 +20,24 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
statuses: write
contents: read
contents: write
issues: write
packages: read
pull-requests: write
statuses: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: true
- name: Run PR Lint
# https://github.com/ivuorinen/actions
uses: ivuorinen/actions/pr-lint@e58465e5d305c3dcdd6e3b788e2b683dc706ea9e # v25.11.25
with:
username: 'github-actions'
email: 'github-actions@github.com'
token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -4,26 +4,20 @@ repos:
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=auto]
- id: pretty-format-json
args: [--autofix, --no-sort-keys]
- id: requirements-txt-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
@@ -32,7 +26,7 @@ repos:
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
args: ["--baseline", ".secrets.baseline"]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
@@ -64,27 +58,21 @@ repos:
rev: v3.12.0-2
hooks:
- id: shfmt
args: [-w, -s, -i, '2']
args: [-w, -s, -i, "2"]
# Shell linting
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.11.0
hooks:
- id: shellcheck
args: ['--severity=warning']
args: ["--severity=warning"]
# GitHub Actions linting
- repo: https://github.com/rhysd/actionlint
rev: v1.7.9
hooks:
- id: actionlint
args: ['-shellcheck=']
# Renovate config validation
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 42.21.3
hooks:
- id: renovate-config-validator
args: ["-shellcheck="]
# Security scanning
- repo: https://github.com/bridgecrewio/checkov.git
@@ -92,6 +80,6 @@ repos:
hooks:
- id: checkov
args:
- '--quiet'
- '--framework'
- 'github_actions,yaml'
- "--quiet"
- "--framework"
- "github_actions,yaml"

View File

@@ -120,4 +120,3 @@ complete -c phpenv -f \
# Complete help options
complete -c phpenv -f -s h -l help -d "Show help"

View File

@@ -35,4 +35,3 @@ if test -n "$PHPENV_GLOBAL_VERSION"; and not set -q PHPENV_INITIALIZED
end
set -g PHPENV_INITIALIZED true
end

View File

@@ -82,4 +82,3 @@ function __phpenv_uninstall --on-event phpenv_uninstall
echo "phpenv.fish configuration removed."
echo "Note: Installed PHP versions are preserved."
end

View File

@@ -1096,4 +1096,3 @@ function __phpenv_validate_extensions -a phpenv_extensions_string
return 1
end
end