Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
Add check-spelling/check-spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref authored Apr 30, 2020
1 parent 0ab1b28 commit 1c3399c
Show file tree
Hide file tree
Showing 4 changed files with 1,269 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/actions/spell-check/excludes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
^LICENSE$
^pkg/chunkenc/testdata/testdata\.go$
^pkg/logql/expr\.y\.go$
\.ico$
\.pgp$
\.png$
(?:^|/)go\.mod$
(?:^|/)go\.sum$
(?:^|/)vendor/
^\.github/actions/spell-check/
8 changes: 8 additions & 0 deletions .github/actions/spell-check/patterns.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
data:[a-zA-Z=;,/0-9+]+
https://(?:(?:www\.|)youtube\.com|youtu.be)/[-a-zA-Z0-9?&=]*
(?:0[Xx]|U\+|#)[a-f0-9A-FGgRr]{2,}[Uu]?[Ll]?\b
\{[0-9A-FA-F]{8}-(?:[0-9A-FA-F]{4}-){3}[0-9A-FA-F]{12}\}
\b([A-Za-z])\1{3,}\b

# This misspelling was fixed and exists to document its previous existence
defaul_validity
Loading

1 comment on commit 1c3399c

@github-actions
Copy link

Choose a reason for hiding this comment

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

New misspellings found, please review:

  • acces
  • acutal
  • Adapater
  • asynchronsouly
  • circlie
  • cirlce
  • cognative
  • Commnent
  • compuation
  • Correcte
  • Deamon
  • defering
  • elliot
  • enbaled
  • enbuf
  • exctracted
  • Expireable
  • explicitely
  • explicly
  • independant
  • lanuages
  • loosey
  • messsage
  • Metics
  • missmatch
  • notexist
  • ouput
  • pipieline
  • piplne
  • postition
  • preprend
  • Quer
  • receieve
  • receieved
  • reducable
  • Registr
  • Reponse
  • retriable
  • scaning
  • soruced
  • Suported
  • Temaplate
  • tmeout
  • Unsuported
To accept these changes, run the following commands
remove_obsolete_words=$(mktemp)
echo '#!/usr/bin/perl -ni
my $re=join "|", qw('"
Errflag
Exca
exprdefault
exprg
exprj
exprn
exprnewstate
exprnt
exprp
exprpt
exprrcvr
exprstack
exprstate
exprtoken
fallthrough
Nerrs
nyys
Pgo
retryable
sourced
Statenames
Statname
tokname
TOKSTART
yyfmt
yys
"');
next if /^($re)(?:$| .*)/;
print;' > $remove_obsolete_words
chmod +x $remove_obsolete_words
for file in .github/actions/spell-check/whitelist.txt; do $remove_obsolete_words $file; done
rm $remove_obsolete_words
(
cat ".github/actions/spell-check/whitelist.txt"
echo "
acces
acutal
Adapater
asynchronsouly
circlie
cirlce
cognative
Commnent
compuation
Correcte
Deamon
defering
elliot
enbaled
enbuf
exctracted
Expireable
explicitely
explicly
independant
lanuages
loosey
messsage
Metics
missmatch
notexist
ouput
pipieline
piplne
postition
preprend
Quer
receieve
receieved
reducable
Registr
Reponse
retriable
scaning
soruced
Suported
Temaplate
tmeout
Unsuported
"
) | sort -u -f | perl -ne 'next unless /./; print' > new_whitelist.txt && mv new_whitelist.txt '.github/actions/spell-check/whitelist.txt'

Please sign in to comment.