| name | code-review |
| description | Review SynapseML Python and Scala code changes. Use before finalizing PR reviews or implementation changes to check security, compatibility, style, generated code, and targeted tests. |
Code Review
Use this skill when reviewing SynapseML changes.
Steps
- Inspect diff:
git --no-pager diff --stat && git --no-pager diff
- Run Scala style:
sbt scalastyle test:scalastyle
- Run Python format check:
black --check --extend-exclude 'docs/' .
- Run targeted tests for touched code.
- Apply the checklists below to every changed file.
- Report only concrete issues with file paths and fixes.
Security Checklist
Apply when changes touch serialization, I/O, network, or authentication code.
Deserialization (CWE-502)
Input Validation
Resource Management
Secrets & Credentials
API Compatibility Checklist
Apply when changes modify public classes, traits, or companion objects.
Binary Compatibility (JVM)
Source Compatibility
Scala Checklist
Python Checklist
Test Checklist