Skip to content

Commit

Permalink
Add check-spelling/check-spelling
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <[email protected]>
  • Loading branch information
jsoref committed Nov 18, 2020
1 parent f8c749f commit d64bbf9
Show file tree
Hide file tree
Showing 4 changed files with 7,636 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/spelling/excludes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
^\.github/
ignore$
\.pem$
^AUTHORS$
Loading

1 comment on commit d64bbf9

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misspellings found, please review:

  • authorizaion
  • brighcove
  • brigthcove
  • createtion
  • excedded
  • exceptiong
  • extaction
  • extention
  • extractiong
  • extracton
  • extractrion
  • extration
  • Fronline
  • Imporove
  • Imporve
  • listssubtitles
  • mutlimedia
  • obfucasted
  • partioning
  • playist
  • playlistst
  • restiction
  • Sercices
  • splited
  • srmediatek
  • suport
  • thumbnal
  • thumbnmail
  • verfication
  • verifcation
  • whitesapces
To accept these changes, run the following commands
perl -e '
my @expect_files=qw('".github/actions/spelling/expect.txt"');
@ARGV=@expect_files;
my @stale=qw('"aa Ab abc ae aes af Ai Akamai Ap app auth bb Bom Bp bz Callback cc Ce ch Codec cts dc dd De desc dev Dir Dj Dk dl dt ee Embed En ep Et ext Fallback Fi filename fn Fo Fps ft git Gn gp Gr gu guid hd Hp ht hv Ie ii Il im int ka kb ki km Kt ky Lb ld Login Lookup Ly meta Mh mk Mp msg multi mv Ng Nl nt ny Ol om op Pc pk Playlist pos pp Pr Puls Qn Rc Requestor rm ro sa sapo Sd Sg Sha Sk spiegel sri str Tg Timeout Timestamp titre Tk Tv uc ug ui un Unix urls Vg Vo was Widget Yt Za "');
my $re=join "|", @stale;
my $suffix=".".time();
my $previous="";
sub maybe_unlink { unlink($_[0]) if $_[0]; }
while (<>) {
  if ($ARGV ne $old_argv) { maybe_unlink($previous); $previous="$ARGV$suffix"; rename($ARGV, $previous); open(ARGV_OUT, ">$ARGV"); select(ARGV_OUT); $old_argv = $ARGV; }
  next if /^(?:$re)(?:(?:\r|\n)*$| .*)/; print;
}; maybe_unlink($previous);'
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
use File::Path qw(make_path);
make_path ".github/actions/spelling";
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"authorizaion brighcove brigthcove createtion excedded exceptiong extaction extention extractiong extracton extractrion extration Fronline Imporove Imporve listssubtitles mutlimedia obfucasted partioning playist playlistst restiction Sercices splited srmediatek suport thumbnal thumbnmail verfication verifcation whitesapces "');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a) cmp lc($b)} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;'

Please sign in to comment.