Fix linting issues
Some checks failed
Compile Java Backend / Compile Backend Code (push) Successful in 1m23s
Lint Java Backend / Checkstyle Java Linting (push) Successful in 46s
Lint Dockerfiles / Lint Dockerfiles (push) Failing after 30s
Lint Frontend / Lint HTML, CSS, and JS (push) Successful in 31s

This commit is contained in:
2025-11-10 18:10:46 +01:00
parent 73ed8b8878
commit 95b26b2e6e
18 changed files with 102 additions and 57 deletions

View File

@@ -16,6 +16,11 @@ jobs:
with:
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
- name: Run hadolint
uses: hadolint/hadolint-action@v3.1.0
uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: ./SmartClinicManagementSystem/app/Dockerfile
dockerfile: ./SmartClinicManagementSystem/app/Dockerfile
output-file: hadolint.log
- uses: actions/upload-artifact@v4
with:
name: hadolint.log
path: hadolint.log

View File

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