Fix linting issues
Some checks failed
Some checks failed
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user