Skip to content

chore: enforce linters across all platforms#26

Merged
tdaira merged 3 commits intomainfrom
chore/enforce-linters
Mar 1, 2026
Merged

chore: enforce linters across all platforms#26
tdaira merged 3 commits intomainfrom
chore/enforce-linters

Conversation

@tdaira
Copy link
Copy Markdown
Owner

@tdaira tdaira commented Mar 1, 2026

Summary

  • Add ktlint to Android app (central_android/) with Gradle plugin and CI step; fix all violations (wildcard imports, trailing commas, multiline expressions, function naming suppression for Compose)
  • Add SwiftLint to iOS app (central_ios/) with .swiftlint.yml config and CI step; fix all violations (line length, extract runFunctionalTests/runBenchmarks from TestRunner)
  • Expand ruff coverage to tools/*.py and fix formatting violations
  • Replace hardcoded C file list with find-based glob in CI, explicitly excluding generated files (generated_*, blerpc.pb.*)

Test plan

  • CI python-lint job passes (ruff now covers tools/*.py)
  • CI c-lint job passes (find-based glob)
  • CI android-build job passes (ktlintCheck + assembleDebug)
  • CI ios-build job passes (SwiftLint + xcodebuild)
  • CI rn-build job passes
  • CI flutter-build job passes

🤖 Generated with Claude Code

Tetsuya Odaira and others added 3 commits March 1, 2026 20:02
- Add ktlint to Android app (Gradle plugin + CI step) and fix violations
- Add SwiftLint to iOS app (config + CI step) and fix violations
- Expand ruff coverage to tools/*.py and fix formatting
- Replace hardcoded C file list with find-based glob in CI
- Extract runFunctionalTests/runBenchmarks in iOS TestRunner

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add parentheses to find command for correct -o precedence
- Revert OSLogMessage string concatenation (OSLog requires single
  interpolated string, not + operator); use swiftlint:disable instead

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace find|grep|xargs pipeline with find -exec to avoid
file path issues on CI runner.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tdaira tdaira merged commit 818c233 into main Mar 1, 2026
7 checks passed
@tdaira tdaira deleted the chore/enforce-linters branch March 1, 2026 11:38
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.

1 participant