1*4882a593SmuzhiyunSUMMARY = "strictures - turn on strict and make all warnings fatal" 2*4882a593SmuzhiyunDESCRIPTION = "I've been writing the equivalent of this module at the top \ 3*4882a593Smuzhiyunof my code for about a year now. I figured it was time to make it shorter. \ 4*4882a593Smuzhiyun\ 5*4882a593SmuzhiyunThings like the importer in \"use Moose\" don't help me because they turn \ 6*4882a593Smuzhiyunwarnings on but don't make them fatal -- which from my point of view is \ 7*4882a593Smuzhiyunuseless because I want an exception to tell me my code isn't warnings-clean. \ 8*4882a593Smuzhiyun\ 9*4882a593SmuzhiyunAny time I see a warning from my code, that indicates a mistake. \ 10*4882a593Smuzhiyun\ 11*4882a593SmuzhiyunAny time my code encounters a mistake, I want a crash -- not spew to STDERR \ 12*4882a593Smuzhiyunand then unknown (and probably undesired) subsequent behaviour. \ 13*4882a593Smuzhiyun\ 14*4882a593SmuzhiyunI also want to ensure that obvious coding mistakes, like indirect object \ 15*4882a593Smuzhiyunsyntax (and not so obvious mistakes that cause things to accidentally compile \ 16*4882a593Smuzhiyunas such) get caught, but not at the cost of an XS dependency and not at the \ 17*4882a593Smuzhiyuncost of blowing things up on another machine. \ 18*4882a593Smuzhiyun\ 19*4882a593SmuzhiyunTherefore, \"strictures\" turns on additional checking, but only when it \ 20*4882a593Smuzhiyunthinks it's running in a test file in a VCS checkout -- although if this \ 21*4882a593Smuzhiyuncauses undesired behaviour this can be overridden by setting the \ 22*4882a593SmuzhiyunPERL_STRICTURES_EXTRA environment variable." 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunSECTION = "libs" 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunHOMEPAGE = "https://metacpan.org/pod/strictures" 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunLICENSE = "Artistic-1.0 | GPL-1.0-or-later" 29*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://README;beginline=246;endline=262;md5=43be558cf4f19823cdd6af22135cf5f8" 30*4882a593Smuzhiyun 31*4882a593SmuzhiyunSRC_URI = "${CPAN_MIRROR}/authors/id/H/HA/HAARG/strictures-${PV}.tar.gz" 32*4882a593SmuzhiyunSRC_URI[md5sum] = "35c14fd25320f32ff40e977feae95d0d" 33*4882a593SmuzhiyunSRC_URI[sha256sum] = "09d57974a6d1b2380c802870fed471108f51170da81458e2751859f2714f8d57" 34*4882a593Smuzhiyun 35*4882a593SmuzhiyunS = "${WORKDIR}/strictures-${PV}" 36*4882a593Smuzhiyun 37*4882a593Smuzhiyuninherit cpan ptest-perl 38*4882a593Smuzhiyun 39*4882a593SmuzhiyunRDEPENDS:${PN} += " \ 40*4882a593Smuzhiyun perl-module-carp \ 41*4882a593Smuzhiyun perl-module-strict \ 42*4882a593Smuzhiyun perl-module-test-more \ 43*4882a593Smuzhiyun perl-module-warnings \ 44*4882a593Smuzhiyun" 45*4882a593Smuzhiyun 46*4882a593SmuzhiyunRDEPENDS:${PN}-ptest += "perl-module-perlio perl-module-perlio-scalar" 47*4882a593Smuzhiyun 48*4882a593SmuzhiyunBBCLASSEXTEND = "native" 49