1010# Please keep in sync with Scripts/format.
1111#
1212
13+ # shellcheck disable=SC1036,SC1056,SC1072
1314. " ${0: A: h} /_setup_script"
1415
1516print_notice ' 🚨 Linting' " ${@ } "
1617
1718ensure_command_available actionlint git markdownlint-cli2 shellcheck swiftformat swiftlint yamllint || exit
1819[[ " $( /usr/bin/arch) " = arm64 && " ${$(sw_vers -productVersion)%% .* } " -ge 15 ]]
1920integer -r can_use_periphery=" $(( ! ? )) "
20- # shellcheck disable=SC1083
21+ # shellcheck disable=SC1073, SC1083
2122(( can_use_periphery)) && { ensure_command_available periphery || exit }
2223
2324zmodload zsh/zutil
24- zparseopts -D -A received_flag A P
25+ zparseopts -D -A received_flag P
2526
2627export -r MAS_DISTRIBUTION=lint
2728
@@ -36,15 +37,6 @@ printf -- $'--> 🦅 SwiftLint\n'
3637swiftlint --strict --quiet --reporter relative-path
3738(( exit_status |= ${?} ))
3839
39- # shellcheck disable=SC1046,SC1047,SC1072,SC1073
40- if ! [[ -v ' received_flag[-A]' ]]; then
41- printf -- $' --> 🔬 SwiftLint Analyze\n '
42- # shellcheck disable=SC1036
43- swiftlint analyze --strict --quiet --reporter relative-path --compiler-log-path\
44- =(xcodebuild -scheme mas -destination " platform=macOS,arch=$( arch) ,variant=macos" 2>&1 )
45- (( exit_status |= ${?} ))
46- fi
47-
4840if (( can_use_periphery)) && ! [[ -v ' received_flag[-P]' ]]; then
4941 printf -- $' --> 🌀 Periphery\n '
5042 periphery scan --exclude-tests |
0 commit comments