Skip to content

Commit 325bd0c

Browse files
authored
chore: add CodeRabbit config (#23)
Successor to the removed Gemini Code Assist / Claude PR review setups. - knowledge_base.mcp.usage: enabled - 'auto' disables MCP for public repositories, which would prevent the DeepWiki MCP server from being used as review context. - reviews.path_instructions: give the reviewer the GTCEu context it needs (this repo is a GregTech CE: Unofficial add-on). Confirmed via source: no ASM class transformer here (unlike GTExpert-Core), module discovery is plain Forge ASMDataTable scanning.
1 parent 6f72426 commit 325bd0c

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

‎.coderabbit.yaml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
knowledge_base:
2+
mcp:
3+
# "auto" disables MCP for public repositories, so set it explicitly.
4+
# This is what allows the DeepWiki MCP server to be used as review context.
5+
usage: enabled
6+
7+
reviews:
8+
path_instructions:
9+
- path: "src/main/java/**/*.java"
10+
instructions: |
11+
Minecraft 1.12.2 Forge mod (GTWoodProcessing / GTWP), an add-on for
12+
GregTech CE: Unofficial (GTCEu, https://github.com/GregTechCEu/GregTech).
13+
Optional integration with GregTech Food Option (GTFO).
14+
15+
GTCEu context — use DeepWiki (GregTechCEu/GregTech) to verify:
16+
- Confirm GTCEu APIs, registries, recipe builders and material/OrePrefix usage
17+
are used correctly, and that referenced methods/fields actually exist in the
18+
pinned GTCEu version.
19+
- Flag use of GTCEu internals that are not part of its public API when a public
20+
equivalent exists.
21+
22+
Platform constraints (1.12.2 / Java 8 bytecode):
23+
- Do NOT suggest Java APIs or language features unavailable on this platform
24+
(e.g. `List.of`, records, switch expressions, text blocks).
25+
- Do NOT suggest modern Minecraft/Forge APIs; this is the 1.12.2 Forge line.
26+
27+
Side boundary:
28+
- Flag client-only types or `@SideOnly(Side.CLIENT)` members referenced from
29+
common/server code paths — this crashes a dedicated server.
30+
31+
Module discovery:
32+
- Modules are discovered via Forge's `ASMDataTable` at FML Construction
33+
(`modules/ModuleManager.java`) — not bytecode rewriting. There is no
34+
IFMLLoadingPlugin/ASM class transformer in this repo.
35+
36+
Optional integrations:
37+
- GTFO integration must be gated (`Loader.isModLoaded()` or the module system's
38+
dependency mechanism) so a missing GTFO cannot crash the game.
39+
40+
Build:
41+
- `build.gradle` is auto-generated. Never edit it
42+
(configure via `buildscript.properties` / `dependencies.gradle`).

0 commit comments

Comments
 (0)