From a793db7399e786b8c882b10e6a8540718d5cdbf1 Mon Sep 17 00:00:00 2001 From: Horacio Sanson Date: Sun, 8 Aug 2021 22:06:58 +0900 Subject: [PATCH] Fix 3865 - Disable scriptencoding vint error. (#3866) - Add .vintrc.yaml configuration that disables the scriptencoding check (ProhibitMissingScriptEncoding) that is raised randomly. - Upgrade vint to 0.3.21. Project seems to have stopped here and 0.4.0 was never released. - Ensure the run-test scripts use the correct docker image (e.g. add tag) . Co-authored-by: Horacio Sanson --- .vintrc.yaml | 5 +++++ Dockerfile | 2 +- run-tests | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .vintrc.yaml diff --git a/.vintrc.yaml b/.vintrc.yaml new file mode 100644 index 00000000..ce04d476 --- /dev/null +++ b/.vintrc.yaml @@ -0,0 +1,5 @@ +policies: + # Disable a violation that is thrown randomly for reasons I still + # do not understand. + ProhibitMissingScriptEncoding: + enabled: false diff --git a/Dockerfile b/Dockerfile index 41696a0b..2b626701 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ ENV PACKAGES="\ RUN apk --update add $PACKAGES && \ rm -rf /var/cache/apk/* /tmp/* /var/tmp/* -RUN pip install vim-vint==0.3.15 +RUN pip install vim-vint==0.3.21 RUN git clone https://github.com/junegunn/vader.vim vader && \ cd vader && git checkout c6243dd81c98350df4dec608fa972df98fa2a3af diff --git a/run-tests b/run-tests index 21ca5769..6cfa3fae 100755 --- a/run-tests +++ b/run-tests @@ -17,7 +17,7 @@ fi git_version=$(git describe --always --tags) # Used in all test scripts for running the selected Docker image. -DOCKER_RUN_IMAGE="$image" +DOCKER_RUN_IMAGE="$image:$image_tag" export DOCKER_RUN_IMAGE tests='test/*.vader test/*/*.vader test/*/*/*.vader test/*/*/*.vader'