dnscontrol/bin/generate-all.sh
Tom Limoncelli 865dad5b78
TOOLS: bin/generate-all.sh should skip .vscode (#3901)
# Issue

bin/generate-all.sh is trying to reformat VSCode's launch.json, but it
can't because it is not strict json.

```
Reformatting: ./.vscode/launch.json
ERROR: Expecting value: line 17 column 17 (char 465)
```

# Resolution

bin/generate-all.sh should skip the .vscode directory.
2025-12-08 10:09:06 -05:00

17 lines
380 B
Bash
Executable file

#!/bin/sh
go fmt ./...
if [[ -x node_modules/.bin/prettier ]]; then
node_modules/.bin/prettier --write pkg/js/helpers.js
fi
# JSON
bin/fmtjson $(find . -path ./.vscode -prune -o -type f -name "*.json" ! -name "package-lock.json" -print)
# dnsconfig.js-compatible files:
for i in pkg/js/parse_tests/*.js ; do dnscontrol fmt -i $i -o $i ; done
go generate ./...
go mod tidy