Merge pull request #7709 from jsoref/spell-check
Set up spell-checking action
This commit is contained in:
commit
ea495b631c
19
.github/actions/spell-check/excludes.txt
vendored
Normal file
19
.github/actions/spell-check/excludes.txt
vendored
Normal 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
2622
.github/actions/spell-check/expect.txt
vendored
Normal file
File diff suppressed because it is too large
Load diff
29
.github/actions/spell-check/patterns.txt
vendored
Normal file
29
.github/actions/spell-check/patterns.txt
vendored
Normal 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
20
.github/workflows/spelling.yml
vendored
Normal 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
|
|
@ -293,7 +293,7 @@ namespace Microsoft.Plugin.Program.Programs
|
||||||
string key = resourceReference.Substring(prefix.Length);
|
string key = resourceReference.Substring(prefix.Length);
|
||||||
string parsed;
|
string parsed;
|
||||||
|
|
||||||
// Using Ordinal/OrdinalIgnorcase since these are used internally
|
// Using Ordinal/OrdinalIgnoreCase since these are used internally
|
||||||
if (key.StartsWith("//", StringComparison.Ordinal))
|
if (key.StartsWith("//", StringComparison.Ordinal))
|
||||||
{
|
{
|
||||||
parsed = prefix + key;
|
parsed = prefix + key;
|
||||||
|
|
Loading…
Reference in a new issue