line |
true |
false |
branch |
43
|
0 |
1 |
if (my $lang = $git->get_config($CFG, "spelling-lang")) |
47
|
1 |
0 |
unless (state $tried_to_check) |
48
|
1 |
0 |
unless (eval {
do {
require Text::SpellChecker
}
}) |
69
|
0 |
0 |
if (not defined eval {
do {
$checker->next_word
}
} and $@) |
87
|
0 |
0 |
unless $msg |
89
|
0 |
0 |
unless $git->get_config_boolean($CFG, "spelling") |
92
|
0 |
0 |
unless my $checker = _spell_checker($git, join("\n", &uniq($msg =~ /\b(\p{Cased_Letter}{3,})\b/giu))) |
100
|
0 |
0 |
if defined $suggestions[0] |
115
|
0 |
0 |
if ($match =~ s/^!\s*//u) { } |
116
|
0 |
0 |
if $text =~ /$match/mu |
122
|
0 |
0 |
unless $text =~ /$match/mu |
146
|
0 |
0 |
if ($git->get_config_boolean($CFG, "deny-merge-revert")) |
147
|
0 |
0 |
if ($msg =~ /This reverts commit ([0-9a-f]{40})/su) |
150
|
0 |
0 |
if (my $reverted_commit = eval {
do {
$git->get_commit($1)
}
}) |
151
|
0 |
0 |
if ($reverted_commit->parent > 1) |
168
|
0 |
0 |
unless (defined $title and length $title) |
169
|
0 |
0 |
if ($git->get_config_boolean($CFG, 'title-required')) { } |
181
|
0 |
0 |
unless $title =~ tr/\n// == 1 |
191
|
0 |
0 |
if (my $max_width = $git->get_config_integer($CFG, "title-max-width")) |
193
|
0 |
0 |
unless $tlen <= $max_width |
203
|
0 |
0 |
if (my $period = $git->get_config($CFG, "title-period")) |
204
|
0 |
0 |
if ($period eq 'deny') { } |
|
0 |
0 |
elsif ($period eq 'require') { } |
|
0 |
0 |
elsif ($period ne 'allow') { } |
205
|
0 |
0 |
if $title =~ /\.$/u |
213
|
0 |
0 |
unless $title =~ /\.$/u |
221
|
0 |
0 |
if $git->fault("Configuration error: invalid value '${period}' for the configuration option.\nThe valid values are 'deny', 'allow', and 'require'.\n", {"commit", $id, "option", "title-period"}) |
239
|
0 |
0 |
unless defined $body and length $body |
241
|
0 |
0 |
if (my $max_width = $git->get_config_integer($CFG, "body-max-width")) |
242
|
0 |
0 |
if (my(@biggies) = grep({/^\S/u;} grep({length $_ > $max_width;} split(/\n/u, $body, 0)))) |
263
|
0 |
0 |
if (@signed_off_by) { } |
|
0 |
0 |
elsif ($git->get_config_boolean($CFG, 'signed-off-by')) { } |
268
|
0 |
0 |
if ($signed_off_by{$person} == 2) |
272
|
0 |
0 |
if (@duplicates) |
296
|
0 |
0 |
defined $commit ? : |