Skip to content

Conversation

@ignatovv
Copy link
Member

Summary

  • Add standalone /verify command for build verification
  • /verify - SwiftLint only (fast)
  • /verify full - SwiftLint + xcodebuild with optional background execution

@ignatovv ignatovv requested a review from a team as a code owner January 16, 2026 16:41
```

2. **If background (yes):**
- Use Task tool with `run_in_background: true`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best Practices: Incorrect Task tool usage. The Task tool does not have a run_in_background parameter. Background execution should use the Bash tool with run_in_background: true parameter instead.

swiftlint lint --config .swiftlint.yml -- path/to/file1.swift path/to/file2.swift

# Or lint all changed files at once
git diff --name-only origin/develop...HEAD -- "*.swift" | xargs swiftlint lint --config .swiftlint.yml --
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best Practices: Using xargs without handling spaces in file paths. Swift files with spaces in their names will break this command.

xcodebuild build \
-workspace Anytype.xcworkspace \
-scheme Anytype \
-destination 'platform=iOS Simulator,name=iPhone 16' \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best Practices: Hardcoded device name iPhone 16 may not exist on all runner environments. Consider using a more widely available simulator like iPhone 15.

@claude
Copy link
Contributor

claude bot commented Jan 16, 2026

Best Practices

.claude/commands/verify.md:66
Incorrect Task tool usage. The Task tool does not have a run_in_background parameter. Background execution should use the Bash tool with run_in_background: true.

.claude/commands/verify.md:30
Using xargs without handling spaces in file paths. Swift files with spaces in their names will break this command.

.claude/commands/verify.md:79
Hardcoded device name "iPhone 16" may not exist on all runner environments. Consider using a more widely available simulator like "iPhone 15".


⚠️ Minor Issues - Fix Task tool usage, xargs file handling, and simulator device

@claude
Copy link
Contributor

claude bot commented Jan 16, 2026

Approved - No issues found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants