diff --git a/.github/linters/chktexrc b/.github/linters/.chktexrc similarity index 100% rename from .github/linters/chktexrc rename to .github/linters/.chktexrc diff --git a/Dockerfile b/Dockerfile index 51fbc70e..f987bff7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ FROM koalaman/shellcheck:v0.7.1 as shellcheck FROM wata727/tflint:0.18.0 as tflint FROM hadolint/hadolint:latest-alpine as dockerfile-lint FROM assignuser/lintr-lib:latest as lintr-lib - +FROM assignuser/chktex-alpine:latest as chktex ################## # Get base image # ################## @@ -252,13 +252,8 @@ RUN R -e "install.packages(list.dirs('/home/r-library',recursive = FALSE), repos ################## # Install chktex # ################## -RUN wget --tries=5 http://mirrors.ctan.org/support/chktex.zip -O chktex.zip -q \ - && unzip -q chktex.zip \ - && cd chktex \ - && ./configure && make \ - && mv chktex /usr/bin \ - && cd .. && rm -rf chktex* \ - && touch /usr/local/share/.chktexrc +COPY --from=chktex /usr/bin/chktex /usr/bin/ +RUN cd ~ && touch .chktexrc ########################################### # Load GitHub Env Vars for GitHub Actions # diff --git a/TEMPLATES/chktexrc b/TEMPLATES/.chktexrc similarity index 100% rename from TEMPLATES/chktexrc rename to TEMPLATES/.chktexrc diff --git a/docs/disabling-linters.md b/docs/disabling-linters.md index 12bc96b3..cedac356 100644 --- a/docs/disabling-linters.md +++ b/docs/disabling-linters.md @@ -609,9 +609,9 @@ import package.b.* ### ChkTex Config file -- `.github/linters/chktexrc` +- `.github/linters/.chktexrc` - You can pass multiple rules and overwrite default rules -- File should be located at: `.github/linters/chktexrc` +- File should be located at: `.github/linters/.chktexrc` - See [ChkTex](https://ctan.kako-dev.de/systems/doc/chktex/ChkTeX.pdf) docs for additional behaviors diff --git a/lib/linter.sh b/lib/linter.sh index 608118c5..d39cd95e 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -70,8 +70,8 @@ JAVASCRIPT_STANDARD_LINTER_RULES='' # EN # Default linter path LINTER_RULES_PATH="${LINTER_RULES_PATH:-.github/linters}" # Linter Path Directory # LaTeX Vars -LATEX_FILE_NAME='chktexrc' # Name of the file -LATEX_LINTER_RULES="${DEFAULT_RULES_LOCATION}/${LATEX_FILE_NAME}" # Path to the Latex lint rules +LATEX_FILE_NAME='.chktexrc' # Name of the file +LATEX_LINTER_RULES="${DEFAULT_RULES_LOCATION}/${LATEX_FILE_NAME}" # Path to the Latex lint rules # env var to supress warning from chktex # Lua Vars LUA_FILE_NAME='.luacheckrc' # Name of the file LUA_LINTER_RULES="${DEFAULT_RULES_LOCATION}/${LUA_FILE_NAME}" # Path to the Lua lint rules