Title: feat(forge-rules): implement 6 deterministic rule matchers (forbidden_imports, required_companion, file_naming, file_size, regex_pattern, dependency_restriction) · Issue #111 · elcode-id/elcode-forge · GitHub
Open Graph Title: feat(forge-rules): implement 6 deterministic rule matchers (forbidden_imports, required_companion, file_naming, file_size, regex_pattern, dependency_restriction) · Issue #111 · elcode-id/elcode-forge
X Title: feat(forge-rules): implement 6 deterministic rule matchers (forbidden_imports, required_companion, file_naming, file_size, regex_pattern, dependency_restriction) · Issue #111 · elcode-id/elcode-forge
Description: Part of Epic #109 (Phase 5A). Description Implement the 6 deterministic rule matchers in crates/forge-rules (src/matchers/ and src/engine.rs). Requirements ** orbidden_imports:** Evaluates if files matching a iles glob (e.g. src/ui/) imp...
Open Graph Description: Part of Epic #109 (Phase 5A). Description Implement the 6 deterministic rule matchers in crates/forge-rules (src/matchers/ and src/engine.rs). Requirements ** orbidden_imports:** Evaluates if files...
X Description: Part of Epic #109 (Phase 5A). Description Implement the 6 deterministic rule matchers in crates/forge-rules (src/matchers/ and src/engine.rs). Requirements ** orbidden_imports:** Evaluates if files...
Opengraph URL: https://github.com/elcode-id/elcode-forge/issues/111
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(forge-rules): implement 6 deterministic rule matchers (forbidden_imports, required_companion, file_naming, file_size, regex_pattern, dependency_restriction)","articleBody":"Part of Epic #109 (Phase 5A).\n\n### Description\nImplement the 6 deterministic rule matchers in crates/forge-rules (src/matchers/ and src/engine.rs).\n\n### Requirements\n1. **\forbidden_imports:** Evaluates if files matching a \files glob (e.g. src/ui/**) import modules matching \forbidden patterns (e.g. src/db/**, @prisma/client, pg). Returns findings with exact import location and line number.\n2. **\required_companion:** Checks if source files matching a \files glob (e.g. src/services/{name}.ts) have a corresponding companion file (e.g. \tests/{name}.test.ts).\n3. **\file_naming:** Enforces naming conventions on paths matching a glob (e.g. src/controllers/** must match *Controller.ts or *.controller.ts).\n4. **\file_size:** Enforces max line count or size limits per path glob.\n5. **\regex_pattern:** Scans source text for forbidden tokens or antipatterns (e.g. console\\.log, @ts-ignore, eval\\(), providing precise line and column spans.\n6. **dependency_restriction:** Flags prohibited packages or version wildcards in repository dependencies.\n7. **Engine Integration:** Wire all 6 matchers into RuleEngine::evaluate(&repo).\n8. **Deterministic Sorting:** Findings must sort deterministically by severity descending, then ID ascending.","author":{"url":"https://github.com/luksluki","@type":"Person","name":"luksluki"},"datePublished":"2026-10-20T06:08:41Z","url":"https://github.com/elcode-id/elcode-forge/issues/111"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:91da0322-391e-0c5b-5f80-c19942290ac3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8D2:60B0F:1F0AA9:2A15CF:6B05999D |
| html-safe-nonce | 5af38c39b255f5bfd096a384b05914f98854d69e6ad37eea9de2bd018b1fa73e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEQyOjYwQjBGOjFGMEFBOToyQTE1Q0Y6NkIwNTk5OUQiLCJ2aXNpdG9yX2lkIjoiMjk4Mjc1ODYxMTY2NDg2OTc5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 25bd548793573836bcb2a9ca7ca80572e084782b3b0e4f5af3edd971ed05b51e |
| hovercard-subject-tag | issue:5936845847 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/elcode-id/elcode-forge/111/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0dc430ff978f1d1f695f9d398c1ebe3a43f05e1cac0adf9c70522cbfef1b80f1/elcode-id/elcode-forge/issues/111 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0dc430ff978f1d1f695f9d398c1ebe3a43f05e1cac0adf9c70522cbfef1b80f1/elcode-id/elcode-forge/issues/111 |
| og:image:alt | Part of Epic #109 (Phase 5A). Description Implement the 6 deterministic rule matchers in crates/forge-rules (src/matchers/ and src/engine.rs). Requirements ** orbidden_imports:** Evaluates if files... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | luksluki |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8bd54b96ae4db60ce608a145a6b2fb16216749fbdb431d9879aabfa7459f1139 |
| turbo-cache-control | no-preview |
| go-import | github.com/elcode-id/elcode-forge git https://github.com/elcode-id/elcode-forge.git |
| octolytics-dimension-user_id | 337957755 |
| octolytics-dimension-user_login | elcode-id |
| octolytics-dimension-repository_id | 1423983661 |
| octolytics-dimension-repository_nwo | elcode-id/elcode-forge |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1423983661 |
| octolytics-dimension-repository_network_root_nwo | elcode-id/elcode-forge |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cda4791073b4da3005eb3d470dc0aef3956bbe34 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width