Skip to content

Commit

Permalink
refactor: Add Linter as CI action - refactor to resolve warnings (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
ursjoss authored Jan 28, 2024
1 parent d68b559 commit 9f658a3
Show file tree
Hide file tree
Showing 41 changed files with 863 additions and 902 deletions.
1 change: 1 addition & 0 deletions .github/linters/.htmlhintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
head-script-disabled: false
34 changes: 34 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint Code Base

on: [push, pull_request]

jobs:
build:
name: Lint
runs-on: ubuntu-latest

permissions:
contents: read
packages: read
statuses: write

steps:

- name: Checkout Code
uses: actions/checkout@v4
with:
# entire history needed
fetch-depth: 0

- name: Lint Code Base
uses: super-linter/[email protected]
env:
DEFAULT_BRANCH: main
VALIDATE_ALL_CODEBASE: true
VALIDATE_CSS: true
VALIDATE_HTML: true
VALIDATE_JAVASCRIPT_ES: true
VALIDATE_JSON: true
FILTER_REGEX_EXCLUDE: jquery/*
# For reporting status
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
image:https://github.com/SwissTPH/AP-Health-Effects/actions/workflows/linter.yml/badge.svg?branch=main&event=push[Super-Linter, link=https://github.com/marketplace/actions/super-linter]

[[ap-health-effects]]

= AP-Health-Effects

== Interactive figure of air pollutants and health effects
Expand Down
12 changes: 6 additions & 6 deletions graph/_image-map.fim
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"fim200","",""
<map name="ludok" id="ludok">
<area shape="rect" coords="118,138,277,340" href="#" onClick="Show_Organ('Atemwege')" onMouseover="$(&quot;#img_Organ_Atemwege&quot;).show();" onMouseout="$(&quot;#img_Organ_Atemwege&quot;).hide();" alt="" fimcolor="0" fimcontrast="1" />
<area shape="rect" coords="176,84,383,997" href="#" onClick="Show_Organ('Herz')" onMouseover="$('#img_Organ_Herz').show();" onMouseout="$('#img_Organ_Herz').hide();" alt="" fimcolor="0" fimcontrast="1" />
<area shape="rect" coords="2,84,173,1005" href="#" onClick="Show_Organ('Nervensystem')" onMouseover="$('#img_Organ_Nervensystem').show()" onMouseout="$('#img_Organ_Nervensystem').hide()" alt="" fimcolor="0" fimcontrast="1" />
<area shape="rect" coords="145,9,247,85" href="#" onClick="Show_Organ('Hirn')" onMouseover="$('#img_Organ_Hirn').show()" onMouseout="$('#img_Organ_Hirn').hide()" alt="" fimcolor="0" fimcontrast="1" />
<area shape="rect" coords="120,326,246,430" href="#" onClick="Show_Organ('Stoffwechsel')" onMouseover="$('#img_Organ_Stoffwechsel').show()" onMouseout="$('#img_Organ_Stoffwechsel').hide()" alt="" fimcolor="0" fimcontrast="1" />
<area shape="rect" coords="176,242,226,307" href="#" onClick="Show_Organ('Herz')" onMouseover="$('#img_Organ_Herz').show()" onMouseout="$('#img_Organ_Herz').hide()" alt="" fimcolor="0" fimcontrast="1" />
<area shape="rect" coords="118,138,277,340" href="#" onClick="Show_Organ('atemwege')" onMouseover="$(&quot;#img-organ-atemwege&quot;).show();" onMouseout="$(&quot;#img-organ-atemwege&quot;).hide();" alt="" fimcolor="0" fimcontrast="1" />
<area shape="rect" coords="176,84,383,997" href="#" onClick="Show_Organ('herz')" onMouseover="$('#img-organ-herz').show();" onMouseout="$('#img-organ-herz').hide();" alt="" fimcolor="0" fimcontrast="1" />
<area shape="rect" coords="2,84,173,1005" href="#" onClick="Show_Organ('nervensystem')" onMouseover="$('#img-organ-nervensystem').show()" onMouseout="$('#img-organ-nervensystem').hide()" alt="" fimcolor="0" fimcontrast="1" />
<area shape="rect" coords="145,9,247,85" href="#" onClick="Show_Organ('hirn')" onMouseover="$('#img-organ-hirn').show()" onMouseout="$('#img-organ-hirn').hide()" alt="" fimcolor="0" fimcontrast="1" />
<area shape="rect" coords="120,326,246,430" href="#" onClick="Show_Organ('stoffwechsel')" onMouseover="$('#img-organ-stoffwechsel').show()" onMouseout="$('#img-organ-stoffwechsel').hide()" alt="" fimcolor="0" fimcontrast="1" />
<area shape="rect" coords="176,242,226,307" href="#" onClick="Show_Organ('herz')" onMouseover="$('#img-organ-herz').show()" onMouseout="$('#img-organ-herz').hide()" alt="" fimcolor="0" fimcontrast="1" />
</map>
<img src="c:\_php\ludok\graph\_mensch_1000.png" width="407" height="1000" border="0" alt="" title="" usemap="#ludok" />
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<body>

<div class="div_iFrame" id="div_iFrame">
<iframe src="index.html" id="ifr_LUDOK" width="100%" height="100%">
<iframe src="index.html" id="ifr_LUDOK" width="100%" height="100%" />
</div>

</body>
Expand Down
Loading

0 comments on commit 9f658a3

Please sign in to comment.