chore: quality hardening — security, tests, docs, knip, ESLint#132
Conversation
…config - Add comprehensive unit tests for src/tenant/contract.ts (100% coverage) - Fix ESLint no-unused-vars across IDP, plugin-system, and feature-toggles - Replace explicit 'any' types with 'unknown' in logger infrastructure - Add jest globals to ESLint config for test files - Add .jsonc to .prettierignore - Reduce lint warnings from 92 to 7 (magic-numbers in scripts only)
- Add 13 validation error path tests for policy loader - Add prototype-pollution blocking tests for resolveFieldPath - Add MAX_DEPTH boundary tests for field path resolution - Add regex pattern length boundary tests for matches operator - Add unknown operator fallback test for evaluateCondition - Total: 517 tests passing (up from 493)
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (36)
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Project Scorecard |
- Add comprehensive README.md for patterns/idp (policy-engine, scorecards, migration assessor, feature toggles, security spoke, project init) - Add README.md for patterns/monitoring (shared logger, Supabase, Sentry) - Add README.md for patterns/mcp-servers (AI providers, streaming, templates) - Add README.md for patterns/security (auth, env templates, middleware, OWASP) - Add 22 governance assessor tests covering all uncovered paths: .cursorrules / copilot-instructions.md alternatives, .claude/skills checks, settings.json hook validation, SAST tool detection (semgrep/codeql/snyk), gitguardian secret scanning, grade/score boundary tests - Total: 534 tests (up from 517)
- Add README for patterns/mcp-gateway (routing, auth, performance, security) - Add README for patterns/code-quality (ESLint rules table, Prettier config) - Add README for patterns/coverage (thresholds, Jest template, exclusions) - Add README for patterns/git (commit conventions, pre-commit hooks, Husky setup) - Add README for patterns/config (patterns-config.yml, Unleash integration) - Add README for patterns/ai-tools (AICodeAnalyzer, forge-audit integration) - Fix .gitignore: scope coverage/ to root only (was blocking patterns/coverage/) - Bring previously-ignored coverage pattern files under version control Pattern README coverage: 19/23 directories (was 13/23)
|


Summary
Comprehensive quality hardening across security, tests, documentation, dead-code elimination, ESLint, and pattern coverage.
Changes
Security (High)
flattedvulnerability vianpm audit fixCritical Bug Fix
src/index.tssaid1.1.1, package was1.11.0— now reads1.11.0VERSION must match package.json versionto prevent future driftscripts/release-core.shto auto-sync VERSION on every releaseCoverage Fix (was blocking 80% gate)
src/tenant/contract.ts— was at 37.5% function coverage, now 100%Test Expansion (+42 tests, 493 → 535)
.cursorrules/copilot-instructions.mdalternatives,.claude/skills/checkssettings.jsonhook validation, SAST tool detection, gitguardianDead Code Elimination (knip)
knip.jsonconfiguration: proper entry points, project scope, ignore rulesexportfrom MCP context server internals:STORE_DIR,ProjectEntry,ProjectMeta,ProjectResource,getContentPath,getMetaPath,findResourceByProjectESLint Cleanup (92 → 7 warnings, 0 errors)
anytypes withunknownin shared-infrastructure logger (5 files)no-undefin.test.ts)Maintenance
.github/workflows/reusable/release-detect.yml.bakpatterns/ide-extensions/vscode/coverage/andopencode.jsoncto.gitignore.gitignore: scopecoverage/to root only (was blockingpatterns/coverage/)Prettierconfig:*.jsoncto.prettierignoreDocumentation (15 new READMEs — all 23/23 patterns now documented)
patterns/idp/— policy engine, scorecards, migration assessor, feature toggles, security spokepatterns/monitoring/,patterns/mcp-servers/,patterns/security/,patterns/mcp-gateway/patterns/code-quality/,patterns/coverage/,patterns/git/,patterns/config/,patterns/ai-tools/patterns/java/,patterns/localstack/Metrics