Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ailinter/ailinter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: ailinter/ailinter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feat/javascript-cohesion
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 12 files changed
  • 2 contributors

Commits on Nov 11, 2026

  1. feat(parser): language-aware cohesion for JavaScript and TypeScript

    Cohesion was measured only by shared types in function signatures. JS and
    TS have no signature types, so every function was counted isolated and any
    module with five or more functions lost the full cohesion penalty: a hard
    ceiling of 85 regardless of design.
    
    Add AnalyzeCohesionLang and use shared module symbols for JS/TS: top-level
    declarations a function references, its own name, and the this.* fields its
    methods use. Unrelated helpers still score low; a class or a module built on
    its own helpers scores high. Typed languages keep the existing type signal.
    
    Tests cover cohesive classes, method call chains, shared helpers, unrelated
    helpers, TypeScript, unknown-language fallback, and a Go regression. Fixtures
    are embedded from each package's testdata so the test files stay self-scan
    clean.
    Ivan
    Ivan committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    c969134 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2026

  1. Configuration menu
    Copy the full SHA
    19b21fb View commit details
    Browse the repository at this point in the history
Loading