Skip Menu |

This queue is for tickets about the Test-Compile CPAN distribution.

Report information
The Basics
Id: 83917
Status: resolved
Priority: 0/
Queue: Test-Compile

People
Owner: Nobody in particular
Requestors: bitcard [...] siteaboutnothing.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: v0.24.0
Fixed in: (no value)



Subject: Files with no extension can't be assumed to contain Perl
The documentation states that files with no extension are returned by all_pl_files, and this is indeed what happens: https://metacpan.org/source/EGILES/Test-Compile- 0.24/lib/Test/Compile/Internal.pm#L144 In our organisation we have many bash scripts with no extension in our 'script' directory, alongside perl scripts. We believe scripts should be named and organised by feature/functionality, not by which language they were written in. Would it be possible to modify Test::Compile::Internal so that it checks whether or not files with no extension are actually Perl files? It could use the shebang line, or perhaps a module already exists for this. What do you think?
I agree (though it did take me a long time to come to that conclusion!) Version 1.2.0 will no longer process files without extensions unless they have a perl 'shebang' line. I hope this helps.