-
-
Notifications
You must be signed in to change notification settings - Fork 473
Expand file tree
/
Copy pathlint.sh
More file actions
executable file
·20 lines (18 loc) · 1.11 KB
/
lint.sh
File metadata and controls
executable file
·20 lines (18 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
cd "$(dirname "$0")"
source ./script/setup.sh
./format.sh "$@"
if sw_vers -productVersion | grep -q "^14"; then # macOS 14
# dyld[6263]: Library not loaded: /usr/lib/swift/libswiftSynchronization.dylib
# Referenced from: <0A48220F-3DCA-3C6C-A54C-FE6C3B854E23> /Users/runner/work/AeroSpace/AeroSpace/.deps/periphery/dist/periphery-3.6.0.artifactbundle/periphery-3.6.0-macos/bin/periphery (built for macOS 15.0 which is newer than running OS)
# Reason: tried: '/usr/lib/swift/libswiftSynchronization.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/libswiftSynchronization.dylib' (no such file), '/usr/lib/swift/libswiftSynchronization.dylib' (no such file, not in dyld cache)
echo 'warning: periphery is disabled on macos 14'
else
./script/install-dep.sh --periphery
# Disable superfluous comments detection because it's buggy. todo: report to periphery maintainer
./.deps/periphery/periphery scan --quiet \
--strict \
--disable-redundant-public-analysis \
--no-superfluous-ignore-comments \
--exclude-targets ShellParserGenerated
fi