Skip to content

Detect .t files as Perl#1355

Open
adamflott wants to merge 1 commit into
XAMPPRocky:masterfrom
adamflott:identify-t-as-perl
Open

Detect .t files as Perl#1355
adamflott wants to merge 1 commit into
XAMPPRocky:masterfrom
adamflott:identify-t-as-perl

Conversation

@adamflott
Copy link
Copy Markdown

@adamflott adamflott commented May 9, 2026

Perl typically uses the .t extension for test files. There is no mandate to use the .t extension.

From a popular Perl module (https://metacpan.org/pod/Mojolicious / github.com:mojolicious/mojo.git)

~/s/p/mojo (main)> git describe
v9.45-3-gfaf712bd3

# cargo install --locked tokei version
~/s/p/mojo (main)> tokei --version
tokei 14.0.0 compiled with serialization support: json
adamflott@Adams-MacBook-Pro ~/s/p/mojo (main)> tokei .
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Language              Files        Lines         Code     Comments       Blanks
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 CSS                       5          272          255           11            6
 HTML                      1            1            1            0            0
 JavaScript                9          476          445           30            1
 JSON                      6           30           30            0            0
 Perl                    165        36393        25573         1647         9173
 Plain Text               13         2259            0         2256            3
 YAML                      9          155          154            1            0
─────────────────────────────────────────────────────────────────────────────────
 Markdown                  4          102            0           74           28
 |- Perl                   1           30           22            2            6
 (Total)                              132           22           76           34
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Total                   212        39718        26480         4021         9217
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# patched .t version
~/s/p/mojo (main)> ~/src/rust/tokei/target/release/tokei .
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Language              Files        Lines         Code     Comments       Blanks
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 CSS                       5          272          255           11            6
 HTML                      1            1            1            0            0
 JavaScript                9          476          445           30            1
 JSON                      6           30           30            0            0
 Perl                    275        71755        56525         2405        12825
 Plain Text               13         2259            0         2256            3
 YAML                      9          155          154            1            0
─────────────────────────────────────────────────────────────────────────────────
 Markdown                  4          102            0           74           28
 |- Perl                   1           30           22            2            6
 (Total)                              132           22           76           34
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Total                   322        75080        57432         4779        12869
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant