canicode 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -29
- package/dist/cli/index.js +1 -3
- package/dist/cli/index.js.map +1 -1
- package/docs/CUSTOMIZATION.md +0 -74
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -144,33 +144,6 @@ canicode analyze <url> --preset strict
|
|
|
144
144
|
|
|
145
145
|
</details>
|
|
146
146
|
|
|
147
|
-
<details>
|
|
148
|
-
<summary><strong>Custom Rules</strong></summary>
|
|
149
|
-
|
|
150
|
-
Add project-specific checks via a JSON file:
|
|
151
|
-
|
|
152
|
-
```bash
|
|
153
|
-
canicode analyze <url> --custom-rules ./my-rules.json
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
```json
|
|
157
|
-
[
|
|
158
|
-
{
|
|
159
|
-
"id": "icon-missing-component",
|
|
160
|
-
"category": "component",
|
|
161
|
-
"severity": "blocking",
|
|
162
|
-
"score": -10,
|
|
163
|
-
"prompt": "Check if this node is an icon and is not a component.",
|
|
164
|
-
"why": "Icons that are not components cannot be reused.",
|
|
165
|
-
"impact": "Developers will hardcode icons.",
|
|
166
|
-
"fix": "Convert to a component and publish to the library."
|
|
167
|
-
}
|
|
168
|
-
]
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
See [`examples/custom-rules.json`](examples/custom-rules.json) | Run `canicode docs rules`
|
|
172
|
-
|
|
173
|
-
</details>
|
|
174
147
|
|
|
175
148
|
<details>
|
|
176
149
|
<summary><strong>Config Overrides</strong></summary>
|
|
@@ -308,9 +281,10 @@ pnpm lint # type check
|
|
|
308
281
|
|
|
309
282
|
- [x] **Phase 1** — 39 rules, density-based scoring, HTML reports, presets, scoped analysis
|
|
310
283
|
- [x] **Phase 2** — 4-agent calibration pipeline, `/calibrate-loop` debate loop
|
|
311
|
-
- [x] **Phase 3** —
|
|
284
|
+
- [x] **Phase 3** — Config overrides, MCP server, Claude Skills
|
|
312
285
|
- [x] **Phase 4** — Figma comment from report (per-issue "Comment" button in HTML report, posts to Figma node via API)
|
|
313
|
-
- [ ] **Phase 5** —
|
|
286
|
+
- [ ] **Phase 5** — Custom rules with pattern matching (node name/type/attribute conditions)
|
|
287
|
+
- [ ] **Phase 6** — Screenshot comparison (Figma vs AI-generated code, visual diff)
|
|
314
288
|
|
|
315
289
|
## License
|
|
316
290
|
|
package/dist/cli/index.js
CHANGED
|
@@ -4807,7 +4807,6 @@ cli.help((sections) => {
|
|
|
4807
4807
|
{
|
|
4808
4808
|
title: "\nCustomization",
|
|
4809
4809
|
body: [
|
|
4810
|
-
` --custom-rules <path> Add custom rules (see: canicode docs rules)`,
|
|
4811
4810
|
` --config <path> Override rule settings (see: canicode docs config)`
|
|
4812
4811
|
].join("\n")
|
|
4813
4812
|
},
|
|
@@ -4817,8 +4816,7 @@ cli.help((sections) => {
|
|
|
4817
4816
|
` $ canicode analyze "https://www.figma.com/design/..." --mcp`,
|
|
4818
4817
|
` $ canicode analyze "https://www.figma.com/design/..." --api`,
|
|
4819
4818
|
` $ canicode analyze "https://www.figma.com/design/..." --preset strict`,
|
|
4820
|
-
` $ canicode analyze "https://www.figma.com/design/..." --config ./my-config.json
|
|
4821
|
-
` $ canicode analyze "https://www.figma.com/design/..." --custom-rules ./my-rules.json`
|
|
4819
|
+
` $ canicode analyze "https://www.figma.com/design/..." --config ./my-config.json`
|
|
4822
4820
|
].join("\n")
|
|
4823
4821
|
},
|
|
4824
4822
|
{
|