Package: sloccount Version: 2.26-5.2 Severity: normal If I have files foo.py and foo.py.in, and run sloccount foo.py, I get no lines counted. The same happens for foo.py.in (perhaps because sloccount does not recognise “.in” as a language?).
So I try sloccount --autogen foo.py, but that still gives 0 lines. I confirm that it seems to be the autogen detection that is in play by removing foo.py.in, and rerunning sloccount foo.py: this now gives me a non-zero count. -- System Information: Debian Release: buster/sid APT prefers bionic-updates APT policy: (500, 'bionic-updates'), (500, 'bionic-security'), (500, 'bionic'), (100, 'bionic-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.15.0-48-generic (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages sloccount depends on: ii libc6 2.27-3ubuntu1 ii perl 5.26.1-6ubuntu0.3 sloccount recommends no packages. Versions of packages sloccount suggests: ii doc-base 0.10.8 -- no debconf information