open-code-review/internal/config/rules
oo0-0-0oo 8ef497c619
feat: add Python code review rules (#343)
* 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>
2026-07-09 20:04:18 +08:00
..
rule_docs feat: add Python code review rules (#343) 2026-07-09 20:04:18 +08:00
resolve_github_test.go feat(rules): add dedicated review rules for GitHub Actions and GitHub config YAML 2026-06-22 17:59:16 +08:00
system_rules.go fix(tool): resolve file_read paths against git top-level in monorepos (#309) 2026-07-07 20:06:28 +08:00
system_rules.json feat: add Python code review rules (#343) 2026-07-09 20:04:18 +08:00
system_rules_test.go feat: add Python code review rules (#343) 2026-07-09 20:04:18 +08:00