Merge pull request #7709 from jsoref/spell-check

Set up spell-checking action
This commit is contained in:
Clint Rutkas 2020-11-04 11:25:37 -08:00 committed by GitHub
commit ea495b631c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 2691 additions and 1 deletions

View file

@ -0,0 +1,19 @@
\.ai$
\.bmp$
\.dat$
\.dll$
\.gif$
\.gitignore$
\.ico$
\.jpg$
\.lcl$
\.pdf$
\.png$
\.PNG$
\.woff$
\.zip$
^\.github/actions/spell-check/
/package(?:-lock|)\.json$
/pinyindb/
/settings-html/
[/.][a-z]{2}(?:-[a-zA-Z]{2}|)\.

2622
.github/actions/spell-check/expect.txt vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,29 @@
https?://(?:(?:www\.|)youtube\.com|youtu.be)/[-a-zA-Z0-9?&=]*
://github\.(?:com|blog)/[^\w")]+
://githubusercontent\.com/[^\w")]+
data:[a-zA-Z=;,/0-9+-]+
0x[0-9a-fA-F](?:\.[0-9a-fA-F]*|)[pP]
(?:0[Xx]|U\+|#)[a-f0-9A-FGgRr]{2,}[Uu]?[Ll]{0,2}\b
[{"][0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}"]
\b([A-Za-z])\1{3,}\b
(?:L"[abAB]+", ){3}L"[abAB]+"
"Lorem[^"]+?\."
TestCase\("[^"]+"
# Windows paths
\\native
\\notifications
\\recyclebin
\\reinstall
\\Resize
\\resource
\\Resources
\\restart
\\restore
\\result
\\runner
\\Telemetry
\\telemetry
\\testapp
\\tests
\\tools

20
.github/workflows/spelling.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Spell checking
on:
push:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '15 * * * *'
jobs:
build:
name: Spell checking
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.0.0
with:
fetch-depth: 5
- uses: check-spelling/check-spelling@0.0.16-alpha
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
bucket: .github/actions
project: spell-check

View file

@ -293,7 +293,7 @@ namespace Microsoft.Plugin.Program.Programs
string key = resourceReference.Substring(prefix.Length);
string parsed;
// Using Ordinal/OrdinalIgnorcase since these are used internally
// Using Ordinal/OrdinalIgnoreCase since these are used internally
if (key.StartsWith("//", StringComparison.Ordinal))
{
parsed = prefix + key;