Skip to content

fix: route null-language configured extensions to line-count scoring#1315

Closed
Lance-Python-Dev wants to merge 1 commit into
entrius:testfrom
Lance-Python-Dev:fix/null-lang-line-count
Closed

fix: route null-language configured extensions to line-count scoring#1315
Lance-Python-Dev wants to merge 1 commit into
entrius:testfrom
Lance-Python-Dev:fix/null-lang-line-count

Conversation

@Lance-Python-Dev
Copy link
Copy Markdown
Contributor

Closes #1274

Extensions configured in programming_languages.json with language=null
(e.g. graphql, gql, env, gitignore) were falling through to
skipped-unsupported instead of line-count scoring, because they are
absent from NON_CODE_EXTENSIONS.

Before marking a file as unsupported, the routing now checks whether the
extension has an entry in programming_languages. If it does, it uses
line-count scoring with the configured weight — consistent with how
NON_CODE_EXTENSIONS entries are handled.

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 19, 2026
@Lance-Python-Dev Lance-Python-Dev force-pushed the fix/null-lang-line-count branch from ebeedfb to 307ace7 Compare May 19, 2026 21:28
@anderdc
Copy link
Copy Markdown
Collaborator

anderdc commented May 19, 2026

Duplicate of #1275 which is better scoped/implemented. Closing.

@anderdc anderdc closed this May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] configured null-language extensions score 0 (skipped-unsupported) instead of line-count

2 participants