[devscripts] 02/07: licensecheck: reformat and comment default check regexp
dod at debian.org
dod at debian.org
Sat Dec 26 11:17:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
dod pushed a commit to branch master
in repository devscripts.
commit 0bb6422bbc8c93c0e20d8854e5e9b3e7eac1169c
Author: Dominique Dumont <dod at debian.org>
Date: Sat Dec 26 11:40:25 2015 +0100
licensecheck: reformat and comment default check regexp
---
scripts/licensecheck.pl | 33 ++++++++++++++++++++++++++++++++-
1 file changed, 32 insertions(+), 1 deletion(-)
diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
index dbfa25b..ba9b6f7 100755
--- a/scripts/licensecheck.pl
+++ b/scripts/licensecheck.pl
@@ -191,7 +191,38 @@ my $default_ignore_regex = qr!
\.shelf|_MTN|\.bzr(?:\.backup|tags)?)(?:$|/.*$)
!x;
-my $default_check_regex = '\.(c(c|pp|xx)?|h(h|pp|xx)?|S|f(77|90)?|go|groovy|lisp|scala|clj|p(l|m)|xs|sh|php|py(|x)|rb|java|js|vala|el|sc(i|e)|cs|pas|inc|dtd|xsl|mod|m|tex|mli?|(c|l)?hs)$';
+
+my $default_check_regex =
+ qr/\.(
+ c(c|pp|xx)? # c and c++
+ |h(h|pp|xx)? # header files for c and c++
+ |S
+ |f(77|90)?
+ |go
+ |groovy
+ |lisp
+ |scala
+ |clj
+ |p(l|m)|xs # perl5
+ |sh
+ |php
+ |py(|x)
+ |rb
+ |java
+ |js
+ |vala
+ |el
+ |sc(i|e)
+ |cs
+ |pas
+ |inc
+ |dtd|xsl
+ |mod
+ |m
+ |tex
+ |mli?
+ |(c|l)?hs
+ )$/x;
# also used to cleanup
my $copyright_indicator_regex
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list