Skip to content

Commit

Permalink
Use editorconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
electrocucaracha committed Sep 30, 2024
1 parent da19c46 commit 8467bfb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[*.sh]
indent_style = space
indent_size = 4

[spec/**]
ignore = true
1 change: 1 addition & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: /
EDITORCONFIG_FILE_NAME: .editorconfig
FILTER_REGEX_EXCLUDE: "requirements/.*"
check-tox:
name: Check syntax (tox)
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ lint:
-e RUN_LOCAL=true \
-e LINTER_RULES_PATH=/ \
-e FILTER_REGEX_EXCLUDE="requirements/.*" \
-e EDITORCONFIG_FILE_NAME=.editorconfig \
github/super-linter
tox -e lint

.PHONY: fmt
fmt:
sudo -E $(DOCKER_CMD) run --rm -u "$$(id -u):$$(id -g)" \
-v "$$(pwd):/mnt" -v /mnt/spec -w /mnt mvdan/shfmt -l -w -i 4 -s .
command -v shfmt > /dev/null || curl -s "https://i.jpillora.com/mvdan/sh!!?as=shfmt" | bash
shfmt -l -w -s .
command -v yamlfmt > /dev/null || curl -s "https://i.jpillora.com/google/yamlfmt!!" | bash
yamlfmt -dstar **/*.{yaml,yml}
command -v prettier > /dev/null || npm install prettier
Expand Down

0 comments on commit 8467bfb

Please sign in to comment.