2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

pre-commit: add 99-er rule

git-svn-id: https://svn.fhem.de/fhem/trunk@12231 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-10-01 17:52:34 +00:00
parent fb2ca21382
commit 343c541b24

View File

@ -75,8 +75,12 @@ foreach my $row (split("\n", $fList)) {
unless($props =~ /Id/);
}
next if($fName !~ m+FHEM/\d\d_(.*).pm$+);
my $modName = $1;
next if($fName !~ m+FHEM/(\d\d)_(.*).pm$+);
my ($modNum, $modName) = ($1, $2);
my %ninetyniners = ("SUNRISE_EL"=>1, "Utils"=>1);
err $fName, "99 is a reserved prefix, not allowed for $modName"
if($modNum eq "99" && !$ninetyniners{$modName});
foreach my $lang (@lang) {
my $suffix = ($lang eq "EN" ? "" : "_$lang");
my $tag;