mirror of
https://github.com/uklans/cache-domains
synced 2025-08-02 22:31:22 +02:00
refactor: add repo-specific fmt in megalinter pre-commands too
For users that don't end up installing lefthook for pre-commit hooks this will ensure that megalinter picks up the necessary formatting changes and reports them.
This commit is contained in:
parent
17720868c5
commit
6d06160998
@ -23,6 +23,17 @@ DISABLE_LINTERS:
|
||||
- SPELL_CSPELL
|
||||
- YAML_V8R
|
||||
|
||||
PRE_COMMANDS:
|
||||
- command: apk add --no-cache yq
|
||||
cwd: root
|
||||
- command: yq -i ".cache_domains |= sort_by(.name)" cache_domains.json
|
||||
cwd: workspace
|
||||
- command: |
|
||||
for f in *.txt; do
|
||||
sort -uo ${f} ${f}
|
||||
done
|
||||
cwd: workspace
|
||||
|
||||
POST_COMMANDS:
|
||||
- command: find . -user root -group root -exec chown ${USER}:${GROUP} {} \;
|
||||
cwd: "workspace"
|
||||
cwd: workspace
|
||||
|
Loading…
Reference in New Issue
Block a user