[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#782171: Updates?



Hi,

On Mon, May 20, 2024 at 06:48:38AM +0000, Zhang, Wentao wrote:
> I noticed that in the "package info" box of sources.debian.org, the "SLOC" field
> doesn't recognize Rust. Example [1]. 
> 
> After doing some research I believe it's because of the somewhat outdated
> sloccount program. Similar report can be found here regarding Scala [2].

Indeed, unfortunately sloccount doesn't seem to be actively
maintained, a merge request for Rust support didn't get any attention:
https://sourceforge.net/p/sloccount/code/merge-requests/5/

> Do we have any plan of updating this infrastructure? In my use cases, I turn to
> sources.debian.org and that SLOC field quite often if the package is not
> maintained on Salsa.

I'd love to see support for more languages. We'd need to:

- Find a suitable alternative (supports a superset of sloccount
  languages, has decent performances).

- Replace the execution and parsing of sloccount output by this
  alternative (in
  https://salsa.debian.org/qa/debsources/-/blob/master/lib/debsources/plugins/hook_sloccount.py?ref_type=heads).

- To keep things consistent, run it on the whole archive to replace
  sloccount results.

Insights on the first point are particularly welcome.

Cheers,
--
Matthieu

Attachment: signature.asc
Description: PGP signature


Reply to: