Skip to content

Commit

Permalink
Add check-spelling/check-spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref authored Aug 20, 2020
1 parent 6088070 commit ea46aa8
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/spelling/excludes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
^package(?:|-lock)\.json$
^\.github/actions/spelling/
ignore$
107 changes: 107 additions & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
anum
args
argv
asdf
baz
blerg
bnum
Browserified
BUILDIDENTIFIER
CARETLOOSE
CARETTRIM
cmp
COERCERTL
COMPARATORLOOSE
COMPARATORTRIM
compver
concat
ctor
dirname
ecomp
ent
enum
eslint
fallthrough
fooblz
fpr
FULLPLAIN
github
glorp
gtfn
gtlt
gtr
hilo
http
HYPHENRANGE
HYPHENRANGELOOSE
instanceof
javascript
json
jw
kinda
linux
LONECARET
LONETILDE
LOOSEPLAIN
lte
ltefn
ltfn
MAINVERSION
MAINVERSIONLOOSE
metadata
minver
neq
neveragain
NONNUMERICIDENTIFIER
notready
npm
numberify
NUMERICIDENTIFIER
NUMERICIDENTIFIERLOOSE
otherbuild
preid
preload
premajor
preminor
prepatch
PRERELEASEIDENTIFIER
PRERELEASEIDENTIFIERLOOSE
PRERELEASELOOSE
rcompare
readdir
Refactor
regexp
rsort
rtl
rv
sadf
Schlueter
semver
sneks
src
Standalone
stderr
stdout
stringify
substr
sut
sys
TILDELOOSE
TILDETRIM
TODO
tokenizing
tostring
tpr
typeof
ubuntu
usr
utf
webpack
xm
xp
xrange
XRANGEIDENTIFIER
XRANGEIDENTIFIERLOOSE
XRANGELOOSE
XRANGEPLAIN
XRANGEPLAINLOOSE
1 change: 1 addition & 0 deletions .github/actions/spelling/patterns.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\\[brn]
13 changes: 13 additions & 0 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Spell checking
on:
push:

jobs:
build:
name: Spell checking
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 5
- uses: check-spelling/check-spelling@prerelease

1 comment on commit ea46aa8

@github-actions
Copy link

Choose a reason for hiding this comment

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

  • interesection
  • satisifes
To accept these changes, run the following commands
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"interesection satisifes "');
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.