-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lucie Dubrunfaut
authored and
Lucie Dubrunfaut
committed
Jan 18, 2024
1 parent
e9ec918
commit d474fc6
Showing
1 changed file
with
14 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
use strict; | ||
use warnings; | ||
use Test::More; | ||
|
||
use Test::More; | ||
use Test::Spelling; | ||
|
||
open(FILE, "<", "stopwords.t"); | ||
add_stopwords(<FILE>); | ||
if (!@ARGV) { | ||
die "Missing perl file to check."; | ||
} | ||
|
||
set_spell_cmd('hunspell -l'); | ||
all_pod_files_spelling_ok( $ARGV[0]); | ||
my $stopword_filename='.github/scripts/stopwords.t'; | ||
if(defined($ARGV[1])){ | ||
$stopword_filename=$ARGV[1]; | ||
} | ||
open(FILE, "<", $stopword_filename) | ||
or die "Could not open $stopword_filename"; | ||
printf("stopword file use : ".$stopword_filename." \n"); | ||
|
||
add_stopwords(<FILE>); | ||
set_spell_cmd('hunspell -l'); | ||
all_pod_files_spelling_ok($ARGV[0]); | ||
close(FILE); |