mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-11-28 23:59:25 +00:00
1.4 KiB
1.4 KiB
Built-in rule library attribution
Except for repository/instructions.yaml, the rule packs in this directory
are ported from Alibaba OpenCodeReview (OCR):
- Source: https://github.com/alibaba/open-code-review
- Files:
internal/config/rules/rule_docs/*.md(rule content) andinternal/config/rules/system_rules.json(path map) - Commit:
89ec55b14442c9f2601fb55b5f554fb6fabbe2c7 - License: Apache License 2.0 (see the
LICENSEfile in this directory) - Copyright: alibaba/open-code-review Contributors
Changes made in the port:
- Each Markdown rule document became one YAML rule pack; its
####sections became individual checks with stable IDs and one of this workflow's closed finding categories. - A leading "Review Principles" section or preamble became the pack's
description. - OCR's product-specific tool names (
file_read,code_search) were replaced with this workflow's read-only exploration language, and a reference to OCR's default path filter was reworded. - OCR's
default_rulesemantics are preserved by the engine: thedefaultpack applies only to files no other built-in pack matches. OCR's.mcontent sniff (MATLAB vs Objective-C) is ported into the engine and selects betweenlanguage.matlabandlanguage.objective-c. - Unlike OCR, matching repository rules do not replace built-in rules by
default: repository rules merge unless they declare
mode: override.