Skip to content

Commit

Permalink
chore: add linter
Browse files Browse the repository at this point in the history
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
  • Loading branch information
neilime committed Mar 30, 2024
1 parent 85dc87f commit f752235
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
version: 2
updates:
- package-ecosystem: docker
open-pull-requests-limit: 20
directory: "/"
schedule:
interval: weekly
day: friday
time: "04:00"
groups:
docker-dependencies:
patterns:
- "*"

- package-ecosystem: github-actions
directory: "/"
open-pull-requests-limit: 20
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ghcr.io/super-linter/super-linter:slim-v6

ENV RUN_LOCAL=true
ENV USE_FIND_ALGORITHM=true
ENV LOG_LEVEL=WARN
ENV LOG_FILE="../logs"
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
help: ## Display help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

lint: ## Execute linting (https://github.com/super-linter/super-linter)
lint: ## Execute linting
DEFAULT_WORKSPACE="$(CURDIR)"; \
LINTER_IMAGE="linter:latest"; \
VOLUME="$$DEFAULT_WORKSPACE:$$DEFAULT_WORKSPACE"; \
LINTER_IMAGE="ghcr.io/super-linter/super-linter:slim-v5"; \
docker pull $$LINTER_IMAGE; \
docker build --tag $$LINTER_IMAGE .; \
docker run \
-e RUN_LOCAL=true -e USE_FIND_ALGORITHM=true \
-e LOG_LEVEL=WARN -e LOG_FILE="../logs" \
-e DEFAULT_WORKSPACE="$$DEFAULT_WORKSPACE" \
-e FILTER_REGEX_INCLUDE="$(filter-out $@,$(MAKECMDGOALS))" \
-v $$VOLUME \
Expand Down

0 comments on commit f752235

Please sign in to comment.