Skip to content

Commit

Permalink
Use go installer for editorconfig-checker (#1475)
Browse files Browse the repository at this point in the history
* Use go installer for editorconfig-checker

* Fix install

* remove  @latest

* go get

* Use docker image
  • Loading branch information
nvuillam authored May 14, 2022
1 parent 671919a commit f958756
Show file tree
Hide file tree
Showing 17 changed files with 64 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Note: Can be used with `megalinter/megalinter@beta` in your GitHub Action mega-l
- Add gherkin-lint in dotnet flavor ([#1435](https://github.com/megalinter/megalinter/issues/1435))
- Define pre-commit hooks ([#569](https://github.com/megalinter/megalinter/issues/569)).
- Pin ansible-lint to 6.0.2 to fix pip dependency conflict between jsonschema versions ([#1470](https://github.com/megalinter/megalinter/issues/1470)).
- Use docker image for editorconfig-checker

- Linter versions upgrades
- [luacheck](https://luacheck.readthedocs.io) from 0.26.0 to **0.26.1** on 2022-04-24
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
FROM mvdan/shfmt:latest-alpine as shfmt
FROM cljkondo/clj-kondo:2022.04.25-alpine as clj-kondo
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM ghcr.io/assignuser/chktex-alpine:latest as chktex
FROM yoheimuta/protolint:latest as protolint
FROM ghcr.io/assignuser/lintr-lib:0.2.0 as lintr-lib
Expand Down Expand Up @@ -176,7 +177,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
gherkin-lint \
graphql \
graphql-schema-linter \
Expand Down Expand Up @@ -346,6 +346,9 @@ RUN wget --tries=5 -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sger
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/dart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -113,7 +114,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -190,6 +190,9 @@ RUN wget --tries=5 -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sger
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/documentation/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -112,7 +113,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -179,6 +179,9 @@ COPY --from=shfmt /bin/shfmt /usr/bin/
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/dotnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -121,7 +122,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
gherkin-lint \
graphql \
graphql-schema-linter \
Expand Down Expand Up @@ -219,6 +219,9 @@ RUN /usr/share/dotnet/dotnet tool install -g dotnet-format
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -113,7 +114,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -180,6 +180,9 @@ COPY --from=shfmt /bin/shfmt /usr/bin/
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/java/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
FROM mvdan/shfmt:latest-alpine as shfmt
FROM cljkondo/clj-kondo:2022.04.25-alpine as clj-kondo
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -114,7 +115,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -188,6 +188,9 @@ COPY --from=clj-kondo /bin/clj-kondo /usr/bin/
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/javascript/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -114,7 +115,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -199,6 +199,9 @@ COPY --from=shfmt /bin/shfmt /usr/bin/
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -133,7 +134,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -216,6 +216,9 @@ COPY --from=shfmt /bin/shfmt /usr/bin/
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -120,7 +121,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -187,6 +187,9 @@ COPY --from=shfmt /bin/shfmt /usr/bin/
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/ruby/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -116,7 +117,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -188,6 +188,9 @@ COPY --from=shfmt /bin/shfmt /usr/bin/
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/rust/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -112,7 +113,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -183,6 +183,9 @@ COPY --from=shfmt /bin/shfmt /usr/bin/
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/salesforce/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -114,7 +115,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -186,6 +186,9 @@ COPY --from=shfmt /bin/shfmt /usr/bin/
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/scala/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -112,7 +113,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -184,6 +184,9 @@ COPY --from=shfmt /bin/shfmt /usr/bin/
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/swift/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
#FROM__END

Expand Down Expand Up @@ -114,7 +115,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -182,6 +182,9 @@ COPY --from=shfmt /bin/shfmt /usr/bin/
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
5 changes: 4 additions & 1 deletion flavors/terraform/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#FROM__START
FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.10.0-alpine as hadolint
FROM mstruebing/editorconfig-checker:2.4.0 as editorconfig-checker
FROM yoheimuta/protolint:latest as protolint
FROM ghcr.io/terraform-linters/tflint:v0.35.0 as tflint
FROM accurics/terrascan:latest as terrascan
Expand Down Expand Up @@ -116,7 +117,6 @@ RUN npm install --no-cache --ignore-scripts \
stylelint-config-sass-guidelines \
stylelint-scss \
dockerfilelint \
editorconfig-checker \
graphql \
graphql-schema-linter \
npm-groovy-lint \
Expand Down Expand Up @@ -183,6 +183,9 @@ COPY --from=shfmt /bin/shfmt /usr/bin/
# hadolint installation
COPY --from=hadolint /bin/hadolint /usr/bin/hadolint

# editorconfig-checker installation
COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker

# dotenv-linter installation
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s

Expand Down
Loading

0 comments on commit f958756

Please sign in to comment.