Skip to content

Commit be97f80

Browse files
committed
fix: add grep -v lib/vscode to git ls-files
1 parent 65ff47b commit be97f80

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

ci/dev/fmt.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44
main() {
55
cd "$(dirname "$0")/../.."
66

7-
shfmt -i 2 -w -sr $(git ls-files "*.sh")
7+
shfmt -i 2 -w -sr $(git ls-files "*.sh" | grep -v "lib/vscode")
88

99
local prettierExts
1010
prettierExts=(
@@ -20,7 +20,7 @@ main() {
2020
"*.yml"
2121
)
2222
prettier --write --loglevel=warn $(
23-
git ls-files "${prettierExts[@]}" | grep -v 'helm-chart'
23+
git ls-files "${prettierExts[@]}" | grep -v "lib/vscode" | grep -v 'helm-chart'
2424
)
2525

2626
doctoc --title '# FAQ' doc/FAQ.md > /dev/null
@@ -30,7 +30,7 @@ main() {
3030
doctoc --title '# Contributing' doc/CONTRIBUTING.md > /dev/null
3131
doctoc --title '# iPad' doc/ipad.md > /dev/null
3232

33-
if [[ ${CI-} && $(git ls-files --other --modified --exclude-standard) ]]; then
33+
if [[ ${CI-} && $(git ls-files --other --modified --exclude-standard | grep -v "lib/vscode") ]]; then
3434
echo "Files need generation or are formatted incorrectly:"
3535
git -c color.ui=always status | grep --color=no '\[31m'
3636
echo "Please run the following locally:"

ci/dev/lint.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ set -euo pipefail
44
main() {
55
cd "$(dirname "$0")/../.."
66

7-
eslint --max-warnings=0 --fix $(git ls-files "*.ts" "*.tsx" "*.js")
8-
stylelint $(git ls-files "*.css")
7+
eslint --max-warnings=0 --fix $(git ls-files "*.ts" "*.tsx" "*.js" | grep -v "lib/vscode")
8+
stylelint $(git ls-files "*.css" | grep -v "lib/vscode")
99
tsc --noEmit
10-
shellcheck -e SC2046,SC2164,SC2154,SC1091,SC1090,SC2002 $(git ls-files "*.sh")
10+
shellcheck -e SC2046,SC2164,SC2154,SC1091,SC1090,SC2002 $(git ls-files "*.sh" | grep -v "lib/vscode")
1111
if command -v helm && helm kubeval --help > /dev/null; then
1212
helm kubeval ci/helm-chart
1313
fi

doc/CONTRIBUTING.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
33
# Contributing
44

5-
- [Pull Requests](#pull-requests)
6-
- [Requirements](#requirements)
7-
- [Development Workflow](#development-workflow)
8-
- [Build](#build)
9-
- [Structure](#structure)
10-
- [Modifications to VS Code](#modifications-to-vs-code)
11-
- [Currently Known Issues](#currently-known-issues)
5+
- [Pull Requests](#pull-requests)
6+
- [Requirements](#requirements)
7+
- [Development Workflow](#development-workflow)
8+
- [Build](#build)
9+
- [Structure](#structure)
10+
- [Modifications to VS Code](#modifications-to-vs-code)
11+
- [Currently Known Issues](#currently-known-issues)
1212

1313
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1414

0 commit comments

Comments
 (0)