Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | SUMMARY = "strictures - turn on strict and make all warnings fatal" |
| 2 | DESCRIPTION = "I've been writing the equivalent of this module at the top \ |
| 3 | of my code for about a year now. I figured it was time to make it shorter. \ |
| 4 | \ |
| 5 | Things like the importer in \"use Moose\" don't help me because they turn \ |
| 6 | warnings on but don't make them fatal -- which from my point of view is \ |
| 7 | useless because I want an exception to tell me my code isn't warnings-clean. \ |
| 8 | \ |
| 9 | Any time I see a warning from my code, that indicates a mistake. \ |
| 10 | \ |
| 11 | Any time my code encounters a mistake, I want a crash -- not spew to STDERR \ |
| 12 | and then unknown (and probably undesired) subsequent behaviour. \ |
| 13 | \ |
| 14 | I also want to ensure that obvious coding mistakes, like indirect object \ |
| 15 | syntax (and not so obvious mistakes that cause things to accidentally compile \ |
| 16 | as such) get caught, but not at the cost of an XS dependency and not at the \ |
| 17 | cost of blowing things up on another machine. \ |
| 18 | \ |
| 19 | Therefore, \"strictures\" turns on additional checking, but only when it \ |
| 20 | thinks it's running in a test file in a VCS checkout -- although if this \ |
| 21 | causes undesired behaviour this can be overridden by setting the \ |
| 22 | PERL_STRICTURES_EXTRA environment variable." |
| 23 | |
| 24 | SECTION = "libs" |
| 25 | |
| 26 | HOMEPAGE = "https://metacpan.org/pod/strictures" |
| 27 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 28 | LICENSE = "Artistic-1.0 | GPL-1.0-or-later" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 29 | LIC_FILES_CHKSUM = "file://README;beginline=246;endline=262;md5=43be558cf4f19823cdd6af22135cf5f8" |
| 30 | |
| 31 | SRC_URI = "${CPAN_MIRROR}/authors/id/H/HA/HAARG/strictures-${PV}.tar.gz" |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 32 | SRC_URI[md5sum] = "35c14fd25320f32ff40e977feae95d0d" |
| 33 | SRC_URI[sha256sum] = "09d57974a6d1b2380c802870fed471108f51170da81458e2751859f2714f8d57" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 34 | |
| 35 | S = "${WORKDIR}/strictures-${PV}" |
| 36 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 37 | inherit cpan ptest-perl |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 38 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 39 | RDEPENDS:${PN} += " \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 40 | perl-module-carp \ |
| 41 | perl-module-strict \ |
| 42 | perl-module-test-more \ |
| 43 | perl-module-warnings \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 44 | " |
| 45 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 46 | RDEPENDS:${PN}-ptest += "perl-module-perlio perl-module-perlio-scalar" |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 47 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 48 | BBCLASSEXTEND = "native" |