Skip to content

feat(scoring): add polyglot tool-dimension mapping and language weight profiles#41

Merged
hummbl-dev merged 1 commit into
mainfrom
feat/claude/polyglot-weights
Apr 18, 2026
Merged

feat(scoring): add polyglot tool-dimension mapping and language weight profiles#41
hummbl-dev merged 1 commit into
mainfrom
feat/claude/polyglot-weights

Conversation

@hummbl-dev
Copy link
Copy Markdown
Owner

Summary

  • Replace hard-coded f.tool in ("ruff", "vulture") with TOOL_DIMENSION_MAP covering all 10 analyzers
  • Add LANGUAGE_WEIGHT_PROFILES for Python, JS/TS, Go, Rust, Shell (e.g., Rust has higher security weight)
  • Add get_weights_for_languages() to blend profiles for mixed-language repos
  • Unknown tools default to "lint" dimension (safe fallback)
  • 21 new tests, 427 total passing

Completes Phase 2 of the roadmap.

Test plan

  • All tools mapped to correct dimensions
  • All profiles sum to 1.0 and have 3 dimensions
  • Rust profile has higher security weight
  • Single/no/unknown/mixed language weight selection
  • ESLint, shellcheck, clippy, golangci-lint findings counted correctly
  • Custom weights still override profiles

🤖 Generated with Claude Code

…t profiles

Replace hard-coded Python-only tool categorization with a
TOOL_DIMENSION_MAP that covers all 10 analyzers. Add per-language
weight profiles (Python, JS/TS, Go, Rust, Shell) and
get_weights_for_languages() for blending mixed-language repos.

Completes Phase 2 of the roadmap.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hummbl-dev hummbl-dev merged commit 66731c4 into main Apr 18, 2026
3 checks passed
@hummbl-dev hummbl-dev deleted the feat/claude/polyglot-weights branch April 18, 2026 18:15
hummbl-dev pushed a commit that referenced this pull request Apr 18, 2026
Phase 1 (Contribution Engine): 6/6 done — PRs #29-34
Phase 2 (Polyglot Expansion): 6/6 done — PRs #36, #40, #41
Contribution tracker seeded with 6 OSS PRs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant