mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-09 17:28:58 +00:00
* feat: add Python code review rules Add python.md rule doc for reviewing .py files and wire "**/*.py" into the system rule map so Python files no longer fall back to default.md. Rules follow the precision-first house style: security/correctness are blocking, style is not, and noise-prone sections carry explicit "do not report" guards. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix: align identity-comparison rule with precision-first principle Split the identity/equality section so severity is explicit: `is` against literals and `== True/False` are real correctness risks, while `== None` vs `is None` is a style preference reported as minor. This removes the section's conflict with the doc's own "style is non-blocking" header. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 lines
764 B
JSON
24 lines
764 B
JSON
{
|
|
"default_rule": "default.md",
|
|
"path_rule_map": {
|
|
"**/*.properties": "properties.md",
|
|
"**/*{mapper,dao}*.xml": "mapper_dao_xml.md",
|
|
"**/pom.xml": "pom_xml.md",
|
|
"**/build.gradle": "build_gradle.md",
|
|
"**/package.json": "package_json.md",
|
|
"**/Cargo.toml": "cargo_toml.md",
|
|
"**/*.{json,json5}": "json.md",
|
|
".github/workflows/**/*.{yaml,yml}": "github_workflows.md",
|
|
".github/**/*.{yaml,yml}": "github_config.md",
|
|
"**/*.{yaml,yml}": "yaml.md",
|
|
"**/*.java": "java.md",
|
|
"**/*.ets": "arkts.md",
|
|
"**/*.astro": "astro.md",
|
|
"**/*.{ts,js,tsx,jsx}": "ts_js_tsx_jsx.md",
|
|
"**/*.{kt}": "kotlin.md",
|
|
"**/*.rs": "rust.md",
|
|
"**/*.{cpp,cc,hpp}": "cpp.md",
|
|
"**/*.c": "c.md",
|
|
"**/*.py": "python.md"
|
|
}
|
|
}
|