feat: add tvos focus audit script - #3
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0491e97bf5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| rg -n 'FocusState|@FocusState|\.focused\(|\.focusSection\(|\.prefersDefaultFocus|\.defaultFocus|\.focusScope|\.focusEffect|\.focusable\(' \ | ||
| --type swift "$REPO" 2>/dev/null || echo " (none found)" |
There was a problem hiding this comment.
Validate repo path before suppressing ripgrep errors
When REPO is invalid or unreadable, this command hides ripgrep’s error output (2>/dev/null) and falls back to (none found), so the script exits successfully with a misleading “clean” audit. Running audit-tvos-focus.sh /tmp/does-not-exist currently reports no findings instead of failing, which can mask operator mistakes and invalidate audit results; add an upfront path check (and/or treat rg exit code 2 as an error) before printing empty-category output.
Useful? React with 👍 / 👎.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a1d55a80bb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Verification