-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow configurable SPDX check exclusions
@SPDX_IGNORE may now be set in the perl.conf test configuration file to specify an additional list of regular expressions matching files that the check for SPDX license headers should ignore.
- Loading branch information
Showing
5 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ BEGIN { | |
@EXPORT_OK = qw( | ||
$COVERAGE_LEVEL @COVERAGE_SKIP_TESTS @CRITIC_IGNORE $LIBRARY_PATH | ||
$MINIMUM_VERSION %MINIMUM_VERSION @MODULE_VERSION_IGNORE | ||
@POD_COVERAGE_EXCLUDE @STRICT_IGNORE @STRICT_PREREQ | ||
@POD_COVERAGE_EXCLUDE @SPDX_IGNORE @STRICT_IGNORE @STRICT_PREREQ | ||
); | ||
|
||
# This version should match the corresponding rra-c-util release, but with | ||
|
@@ -62,6 +62,7 @@ our $MINIMUM_VERSION = '5.010'; | |
our %MINIMUM_VERSION; | ||
our @MODULE_VERSION_IGNORE; | ||
our @POD_COVERAGE_EXCLUDE; | ||
our @SPDX_IGNORE; | ||
our @STRICT_IGNORE; | ||
our @STRICT_PREREQ; | ||
|
||
|
@@ -76,7 +77,7 @@ __END__ | |
=for stopwords | ||
Allbery rra-c-util Automake perlcritic .libs namespace subdirectory sublicense | ||
MERCHANTABILITY NONINFRINGEMENT regexes | ||
MERCHANTABILITY NONINFRINGEMENT regexes SPDX | ||
=head1 NAME | ||
|
@@ -159,6 +160,12 @@ testing. Normally, all methods have to be documented in the POD for a Perl | |
module, but methods matching any of these regexes will be considered private | ||
and won't require documentation. | ||
=item @SPDX_IGNORE | ||
Regexes that match files that should be excluded from SPDX license header | ||
checks, in addition to the standard exclusions. The regular expression is | ||
matched against the file path relative to the top of the source tree. | ||
=item @STRICT_IGNORE | ||
Additional directories to ignore when doing recursive Test::Strict testing for | ||
|
@@ -183,7 +190,7 @@ Russ Allbery <[email protected]> | |
=head1 COPYRIGHT AND LICENSE | ||
Copyright 2015-2016, 2019, 2021 Russ Allbery <[email protected]> | ||
Copyright 2015-2016, 2019, 2021, 2023 Russ Allbery <[email protected]> | ||
Copyright 2013-2014 The Board of Trustees of the Leland Stanford Junior | ||
University | ||
|