question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`plugin_languages_recent_days` doesn't do anything

See original GitHub issue

No matter what value I pass to plugin_languages_recent_days I get the same output.

Screenshot_20210531-112731 Screenshot_20210531-112717 Screenshot_20210531-113623

https://github.com/lowlighter/metrics/blob/2ae690fac73120264a7221f821e0e708c11f3fc4/source/plugins/languages/analyzers.mjs#L63

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lowlightercommented, Jun 1, 2021

Yes the recent analyzer doesn’t load the .gitattributes of the related repo currently

I’ll check to create “temporary partial repositories” from event patches instead of just storing them in the same folder and fetch the .gitattributes at least once so linguist is more accurate in its result

1reaction
lowlightercommented, Jun 1, 2021

Hm, okay, I was sure I hadn’t done 4k JS in the past week

Maybe there are still adjustements to do on this feature since it’s relatively new, if you find anything which makes stats incorrect like in #338 don’t hesitate to report it 🙂

It’s possible that there are some “noises” that get counted in like added empty lines, moved code blocks (the same lines may count multuple times if you change it place) or single characters lines like brackets }

Is there a way to reflect that it’s reached the maximum in the total-days count and have it change to the oldest day reached? So if it only reached May 20 it would say “past 11 days” instead of “past 30 days”

Yes, it shouldn’t be too hard to do, essentially we just need to load the created_at date from the last commit event fetched: https://github.com/lowlighter/metrics/blob/37f686a2ac804b88958992689b66212556e8afd3/source/plugins/languages/analyzers.mjs#L70-L71

And change the value used in the template: https://github.com/lowlighter/metrics/blob/37f686a2ac804b88958992689b66212556e8afd3/source/templates/classic/partials/languages.ejs#L23

Read more comments on GitHub >

github_iconTop Results From Across the Web

Translation does not load correctly - WordPress.org
Hello Uwe, I have updated to the latest version and it has not worked. Then I created a new ES language again with...
Read more >
Translations are not showing in the front end. - WPML
Hi there, i am using an Ewebot theme. i have installed the WPML plugin. i translated the home page into all languages.
Read more >
TranslatePress WordPress Plugin: Read This Before Choosing!
TranslatePress is a premium WordPress translation plugin that comes with high-end features for multilingual websites. Read this guide before ...
Read more >
9 Language Translator WordPress Plugins for a Multilingual ...
In this post, I'll discuss some of the benefits of translating your website, what types of translations are available, and the best language...
Read more >
Natural Language Dates in Obsidian - GitHub
Expand dates using natural language inline within the editor view. Typing @today Enter will automatically be expanded to the current date. Press Shift...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found