2026-03-08 07:09:08 +01:00
|
|
|
name: CodeQL
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches: [main]
|
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
|
|
jobs:
|
2026-03-08 07:15:05 +01:00
|
|
|
lint-debian:
|
|
|
|
|
runs-on: debian-latest
|
2026-03-08 07:09:08 +01:00
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
2026-03-08 07:17:49 +01:00
|
|
|
- name: Install Linters
|
|
|
|
|
run: npm install -g htmlhint stylelint stylelint-config-standard eslint
|
2026-03-08 07:09:08 +01:00
|
|
|
- name: HTML
|
2026-03-08 07:38:58 +01:00
|
|
|
run: htmlhint "**/*.html" --ignore "assets/**"
|
2026-03-08 07:09:08 +01:00
|
|
|
- name: CSS
|
2026-03-08 07:42:47 +01:00
|
|
|
run: |
|
|
|
|
|
stylelint "**/*.css" \
|
|
|
|
|
--allow-empty-input \
|
|
|
|
|
--fix \
|
2026-03-08 07:44:02 +01:00
|
|
|
--config '{
|
|
|
|
|
"extends": ["stylelint-config-standard"],
|
|
|
|
|
"rules": {
|
|
|
|
|
"no-duplicate-selectors": null,
|
|
|
|
|
"no-descending-specificity": null,
|
|
|
|
|
"declaration-block-no-shorthand-property-overrides": null,
|
|
|
|
|
"font-family-no-duplicate-names": null
|
|
|
|
|
}
|
|
|
|
|
}'
|
2026-03-08 07:09:08 +01:00
|
|
|
- name: JS
|
2026-03-08 07:38:58 +01:00
|
|
|
run: 'npx eslint . --no-eslintrc --rule "semi: [2, always]" --rule "no-console: 0" --env browser'
|