ci: add Cap 9 deprecated-API guard

Merged
RI
2mo ago
+308-0

Summary

  • Add scripts/check-cap9-deprecated.mjs (same file as other Cap-go plugins).
  • Wire check:cap9-deprecated in package.json and run it in CI after check:wiring on Android, iOS, and Web jobs.

Test plan

  • bun run check:cap9-deprecated (passes locally)
  • GitHub Actions test.yml

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Chores

    • Added automated checks to detect deprecated Capacitor native API usage in Android and iOS plugins.
    • Checks support individual plugins and workspaces while excluding generated and dependency files.
    • Reports the matching rule, file, line number, and source text when issues are found.
    • Validates package metadata and returns clear failure results for invalid configurations or detected violations.
  • Tests

    • Integrated the deprecation check into the web validation workflow before linting.