Fix linting issues

This commit is contained in:
2025-11-10 18:22:03 +01:00
parent 95b26b2e6e
commit 671d3413a5
2 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ jobs:
with: with:
dockerfile: ./SmartClinicManagementSystem/app/Dockerfile dockerfile: ./SmartClinicManagementSystem/app/Dockerfile
output-file: hadolint.log output-file: hadolint.log
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v3
with: with:
name: hadolint.log name: hadolint.log
path: hadolint.log path: hadolint.log

View File

@@ -17,10 +17,10 @@ jobs:
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }} ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
- name: Install linters - name: Install linters
run: | run: |
npm install -g htmlhint stylelint stylelint-config-standard eslint npm install htmlhint stylelint stylelint-config-standard eslint
- name: Lint HTML - name: Lint HTML
run: htmlhint "./SmartClinicManagementSystem/app/src/main/resources/static/pages//*.html" || true run: ./node_modules/.bin/htmlhint "./SmartClinicManagementSystem/app/src/main/resources/static/pages//*.html" || true
- name: Lint CSS - name: Lint CSS
run: stylelint "./SmartClinicManagementSystem/app/src/main/resources/static/assets/css//*.css" || true run: ./node_modules/.bin/stylelint "./SmartClinicManagementSystem/app/src/main/resources/static/assets/css//*.css" || true
- name: Lint JS - name: Lint JS
run: eslint -c SmartClinicManagementSystem/eslint.config.js "./SmartClinicManagementSystem/app/src/main/resources/static/js//*.js" || true run: ./node_modules/.bin/eslint -c SmartClinicManagementSystem/eslint.config.js "./SmartClinicManagementSystem/app/src/main/resources/static/js//*.js" || true