Skip to content

Commit

Permalink
Exclude catch.hpp from spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Aug 4, 2022
1 parent 3b3c840 commit 70945c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/spell-check/excludes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ignore$
\.icc$
\.jpg$
\.png$
\.hpp$
\.props$
^appveyor\.yml$
^imageflow_core/tests/visuals\.rs$
Expand Down

2 comments on commit 70945c0

@github-actions

This comment was marked as outdated.

@github-actions
Copy link

@github-actions github-actions bot commented on 70945c0 Aug 4, 2022

Choose a reason for hiding this comment

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

@check-spelling-bot Report

🔴 Please review

See the 📜action log for details.

Unrecognized words (1)

millis

Previously acknowledged words that are now absent abortx Afx AFXDLL alignas alignof AMicrosecond AMillisecond AMinute ASecond assertionhandler assertioninfo assertionresult atto autoregistrar bitpattern chstr clara colourised commandline csbi cygwin debugbreak decltype declval DJGPP EHa EMSCRIPTEN femto GNUG icase IColour IConfig IContext icpc IException IMutable invisibles IPHONE IRegistry IReporter IResult IRunner IStreaming ITag ITest ITracker ITransient junit junitreport kinfo Kvp lcase lfirst libidentify llast manip matchee mayfail milli nano nanoant NOFAIL NOLINT NOMINMAX NOSTDOUT nsstring objc oss ostringstreams PCHs PEXCEPTION posix prefs PVOID rawtime reimplementation rfirst rlast SEH shouldfail stdcall strace stringification STRINGIFIER STRINGMAKERS stringref Strzelecki tbd testcase testframework testsuites textflow tostring TWOBLUECUBES uft ulp unices Unstreamable UNSUPPRESS Warc Wcovered Wexit Wglobal wmain Wpadded Wparentheses Wswitch Wunused Wweak
To accept ✔️ these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands

... in a clone of the [email protected]:imazen/imageflow.git repository
on the refs/tags/v1.7.3-rc67 branch (ℹ️ how do I use this?):

update_files() {
perl -e '
my @expect_files=qw('".github/actions/spell-check/expect/21a881426bac4ce7da7479525c41638edb10dab3.txt
.github/actions/spell-check/expect/4fd706fd879e80192d1ecef241faca522e84be19.txt
.github/actions/spell-check/expect/expect.txt"');
@ARGV=@expect_files;
my @stale=qw('"$patch_remove"');
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/spell-check/expect/70945c00267a99d678fb0d53e675dc7827e12fe2.txt";
use File::Path qw(make_path);
use File::Basename qw(dirname);
make_path (dirname($new_expect_file));
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"$patch_add"');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a)."-".$a cmp lc($b)."-".$b} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;
system("git", "add", $new_expect_file);
'
}

comment_json=$(mktemp)
curl -L -s -S \
-H "Content-Type: application/json" \
"https://api.github.com/repos/imazen/imageflow/comments/80347785" > "$comment_json"
comment_body=$(mktemp)
jq -r ".body // empty" "$comment_json" | tr -d "\\r" > $comment_body
rm $comment_json

patch_remove=$(perl -ne 'next unless s{^</summary>(.*)</details>$}{$1}; print' < "$comment_body")

patch_add=$(perl -e '$/=undef; $_=<>; if (m{Unrecognized words[^<]*</summary>\n*```\n*([^<]*)```\n*</details>$}m) { print "$1" } elsif (m{Unrecognized words[^<]*\n\n((?:\w.*\n)+)\n}m) { print "$1" };' < "$comment_body")

update_files
rm $comment_body
git add -u
Available dictionaries could cover words not in the dictionary

This includes both expected items (1071) from .github/actions/spell-check/expect/21a881426bac4ce7da7479525c41638edb10dab3.txt
.github/actions/spell-check/expect/4fd706fd879e80192d1ecef241faca522e84be19.txt
.github/actions/spell-check/expect/expect.txt and unrecognized words (1)

cspell:fullstack/fullstack.txt (181) covers 11 of them
cspell:aws/aws.txt (1485) covers 10 of them
cspell:rust/rust.txt (112) covers 9 of them
cspell:npm/npm.txt (671) covers 7 of them
cspell:java/java.txt (33524) covers 6 of them

Consider adding them using (in .github/workflows/spelling.yml):

      with:
        extra_dictionaries:
          cspell:fullstack/fullstack.txt
          cspell:aws/aws.txt
          cspell:rust/rust.txt
          cspell:npm/npm.txt
          cspell:java/java.txt

To stop checking additional dictionaries, add:

      with:
        check_extra_dictionaries: ''
Warnings (1)

See the 📜action log for details.

ℹ️ Warnings Count
ℹ️ deprecated-feature 1

See ℹ️ Event descriptions for more information.

Please sign in to comment.