Replies: 1 comment 6 replies
-
Probably related to #1047 and #551. Basically, like you said, RenderScript and Rust share the same extension, metrics/source/plugins/habits/index.mjs Lines 42 to 55 in 552c2a2 Even if the file as a whole contains enough Rust-like code to be picked up by heuristics, it's likely that the patches won't. This might relate to your commit style, too: big monolithic commits might result in more accurate language metrics than small, atomic commits (though the latter is much better IMO). |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently mainly working in Rust and I was wondering why the "Language activity" section was saying I was using RenderScript (see screenshot). I recenly looked into it and found out that both Rust and RenderScript use the .rs file extension. Both the "Most used languages" and "Recently used languages" sections interpret them correctly as Rust source files.
I tried to alias RenderScript to Rust via
plugin_languages_aliases: RenderScript:Rust
, but it didn't affect the "Language activity" section so I undid it to not confuse me later. I am using the GitHub actions version usinglowlighter/metrics@latest
.Is there a way to fix it/at least alias it? The files include all sorts of Rust things (
pub
,fn
,use
...) and are usually at least 100 lines long, so it shouldn't be an issue of not enough data.Beta Was this translation helpful? Give feedback.
All reactions