mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-17 21:31:43 +03:00
154c9c1c26
Merge in DNS/adguard-home from imp-hook to master Squashed commit of the following: commit f09a3ea2c0299b3ecb39b62d83b65919e425e591 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Jan 28 13:49:03 2021 +0300 scripts: imp client linting
24 lines
436 B
Bash
Executable File
24 lines
436 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e -f -u
|
|
|
|
if [ "$(git diff --cached --name-only -- 'client/*.js')" ]
|
|
then
|
|
make js-lint js-test
|
|
fi
|
|
|
|
if [ "$(git diff --cached --name-only -- 'client2/*.js' 'client2/*.ts' 'client2/*.tsx')" ]
|
|
then
|
|
make js-beta-lint js-beta-test
|
|
fi
|
|
|
|
if [ "$(git diff --cached --name-only -- '*.go' 'go.mod')" ]
|
|
then
|
|
make go-lint go-test
|
|
fi
|
|
|
|
if [ "$(git diff --cached --name-only -- './openapi/openapi.yaml')" ]
|
|
then
|
|
make openapi-lint
|
|
fi
|