## Description

This PR runs a spellcheck pass on the repo, fixing typos and updating the ignore list.

### Type of Change
- Bug fix (non-breaking change which fixes an issue)

### Why
N/A

### What
What changes were made to the codebase to solve the bug, add the functionality, etc. that you specified above.

## Screenshots
N/A

## Testing
N/A
This commit is contained in:
Jon Thysell 2023-07-19 11:36:56 -07:00 коммит произвёл GitHub
Родитель 152e34de93
Коммит 57f88c3c66
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
10 изменённых файлов: 86 добавлений и 66 удалений

Просмотреть файл

@ -12,6 +12,7 @@
"dictionaries": ["project-words"],
"files": ["**/*.{cpp,h,idl,cs,js,jsx,ts,tsx}"],
"ignorePaths": [
"**/flow-typed/npm",
"node_modules",
"packages/@office-iss/react-native-win32-tester",
"packages/@react-native/tester",

114
.spelling
Просмотреть файл

@ -20,7 +20,6 @@ APPMODEL
appxrecipe
APSTUDIO
argsstring
arraybuffer
ARRAYISLOCKED
ARRAYSIZE
ARRAYVIEW
@ -39,7 +38,7 @@ AUTORESTORE
autoscroll
autotoc
backcompat
backface
Backface
backswipe
BADIMAGE
BADINDEX
@ -55,8 +54,7 @@ binlog
birthdate
bitflags
BITMAPSOURCE
blackbox
Borderless
borderless
BREAKONNEXTLINE
Bridgeless
briefdescription
@ -64,14 +62,15 @@ Bstr
BSTR's
callbackstate
callsites
Callstack
callstack
cameraroll
cancelation
CANCELLATIONERRORPROVIDER
CANCELLATIONEXCEPTION
CANCELLATIONTOKEN
Canthrow
canthrow
cdebug
Chakra
chakra
CHAKRACORE
chakrart
CHARFORMAT
@ -87,7 +86,7 @@ CLASSNOTAVAILABLE
CLASSSTRING
CLRCALL
CLSCTX
CLSID
clsid
cmdline
CNTPTR
Cntr
@ -121,7 +120,7 @@ cplus
CPPEXTENSIONS
CPPMACROS
CPPMACROSDEBUG
cppwinrt
CPPWINRT
CPPWINRTLESSEXCEPTIONS
cpuprofile
CREATESTRUCT
@ -144,13 +143,14 @@ DEBUGGERPORTLABEL
DEBUGTEST
declname
DECLSPECDEFINITIONS
DECLSPECS
declspecs
deduped
defval
denodeify
describedby
detaileddescription
devmenu
devserver
DEVSERVER
devsettings
DFACE
dialogbox
@ -168,7 +168,7 @@ DQTYPE
drawerlayout
DSIMPLETYPOGRAPHY
dvalue
DWRITE
dwrite
dwxs
dxgi
dynamiclibrary
@ -182,6 +182,7 @@ emsp
ENDCOMPOSITION
Endish
endregion
ENOWORKSPACES
ensp
envinfo
ERRORCODE
@ -206,7 +207,7 @@ FASTREFRESH
fauxbutton
fbjs
FBJSCEXTENSIONS
fbsystrace
FBSYSTRACE
FILELINE
FILELINECORE
FILELINEPARAMS
@ -227,7 +228,6 @@ flowconfig
flowlint
flyoutbase
flyouts
Focusability
FOLDERID
foos
fpermissive
@ -247,20 +247,20 @@ FUTUREWEAKPTRINL
FUTUREWINRT
Gamepad
GAUSSIANBLUR
Genericfunctype
genericfunctype
geosample
GETCURSEL
getnpm
GETOBJECT
Glog
GTEST
gtest
GTESTADAPTER
guiddef
guids
Guids
HACCEL
Hanja
hannesr
Hasher
hasher
HBCB
HBCBUNDLES
HBITMAP
@ -271,7 +271,7 @@ HCURSOR
healthcheck
healthchecks
hglobal
himc
HIMC
HIMETRIC
HINSTANCE
hittesting
@ -288,8 +288,8 @@ hrgn
HRSRC
hruler
hstr
HSTRING
Hwnd
Hstring
hwnd
HWNDs
ICONERROR
iconmenu
@ -306,16 +306,16 @@ ILLUSTATION
imagebutton
imws
INITDIALOG
inited
Inited
INITFIRST
INITFN
initialhost
innerstroke
inputmode
inspectable
Inspectable
integrationtest
inttests
INVALIDARG
INVALIDOPERATION
invalidpackage
istarts
itemizedlist
@ -346,7 +346,6 @@ JSIAPI
JSIVALUE
JSIVALUECONVERSION
JSIVALUEHELPERS
jsproperty
JSRT
JSVALUE
JSVALUEREADER
@ -355,7 +354,6 @@ JSVALUETREEWRITER
JSVALUEWRITER
JSVALUEXAML
Junja
Keyboardable
keyboardkey
keypressed
KILLFOCUS
@ -370,7 +368,7 @@ LBUTTONUP
LCMAP
LCONTROL
lessthrow
Liblet
LIBLET
LIBLETAWAREMEMLEAKDETECTION
Liblets
linebreak
@ -390,7 +388,7 @@ logmarker
LONGLIVEDJSIVALUE
longpress
LOWORD
LPARAM
lparam
LPCOLESTR
LPCREATESTRUCT
LPCRECT
@ -418,7 +416,7 @@ maybenull
mayterminate
maythrow
memberdef
Memberinitializer
memberinitializer
MEMBERNOTFOUND
MEMORYAPI
MEMORYLEAKSCOPE
@ -461,11 +459,11 @@ myarn
MYMODULE
myscheme
Nametable
Napi
NAPI
nativeid
NCCREATE
ndash
needsreview
Needsreview
nesw
netcore
netinfo
@ -473,13 +471,12 @@ newtarget
Newtonsoft
newwer
NEWWINDOW
NODEAPIJSIRUNTIME
nodecl
nodoc
noexcept
NOGDI
NOHEAP
Noinference
Noheap
noinference
NOINTERFACE
nologo
NOMINMAX
@ -488,9 +485,10 @@ nonexcept
nonswappable
Norefcapture
NOREFCOUNT
NOREG
nostack
nothrowfunctype
Notrunccast
Nothrowfunctype
notrunccast
nowarn
NTAPI
ntdll
@ -501,10 +499,10 @@ nullchar
nullchars
nullptrs
NULLT
NULLTERMINATED
Nullterminated
nullthrows
Numpad
oacr
OACR
OBJECTREFCOUNT
Objectthese
OBJECTWITHWEAKREF
@ -514,7 +512,6 @@ Onstart
OPENJSBUNDLEBOX
OPENJSFILE
orderedlist
outerborder's
Outputdir
overconsumption
OVERLAPPEDWINDOW
@ -532,11 +529,11 @@ paramref
pathgeo
PATTERNID
PBGRA
PBYTE
PCLDR
PCUNICODE
PCWSTR
Perfing
permessage
perfing
persistor
PFNREGISTER
phonesdk
@ -556,12 +553,13 @@ POINTERUP
politefocus
polyfils
popd
posinset
postbump
predeclared
prefast
Pressability
Pressable
Pressables
pressables
pressevent
PROCESSENTRY
PROGRAMFILES
@ -638,7 +636,7 @@ RMENU
rncli
rncodegen
rnhost
RNTESTER
rntester
rntypes
RNWCLI
rnwcore
@ -659,7 +657,7 @@ RWIN
SAFEADD
SAFEARRAY
safelist
safelisted
Safelisted
scaledviewport
scandir
scheduletime
@ -681,6 +679,7 @@ SETEVENTMASK
SETFOCUS
SETLIMITTEXT
SETSEL
setsize
SETTEXTEX
SETTINGSBOX
sharedfolder
@ -713,7 +712,7 @@ sslv
staticlibrary
staticness
staticsig
statsbeat
Statsbeat
STATSTG
STDAPI
STDMETHOD
@ -729,15 +728,16 @@ STRUCTINFO
subchannel
subchannels
subfiles
subheadline
sublocality
Subview
subviews
Subviews
superview
superviews
svgz
swipeable
SYMED
Synclambda
synclambda
SYSCHAR
SYSKEYDOWN
SYSKEYUP
@ -756,7 +756,7 @@ testfolder
TESTINFO
TESTMETHOD
TESTWINRT
textbox
Textbox
textelement
textinput
THEMECHANGED
@ -772,13 +772,13 @@ togglebutton
toggleswitches
Toolhelp
touchableopacity
touchables
Touchables
touchablewithoutfeedback
TOUCHPAD
Touchpad
TRACELOGGING
treegrid
treeitem
turbomodule
TURBOMODULE
turbomodules
twips
TXTBACK
@ -794,6 +794,7 @@ uielement
uimanager
ULARGE
ulink
unaccess
underlaying
Unfocuses
ungenerated
@ -801,13 +802,14 @@ unhighlight
unhighlighting
Uninit
uninited
uninitialize
Uninitialize
unitest
universalwindowsplatform
UNKNOWNNAME
UNKNOWNOBJECT
unmangled
unmocked
unobserve
unpackaged
unparented
Unstored
@ -834,6 +836,7 @@ vscprintf
vstest
vstools
VSTS
VSUWP
vswhere
waitfor
wakey
@ -848,7 +851,7 @@ WDIO
WEAKPTR
WEAKREFCOUNT
weakthis
WEBDEBUGGER
webdebugger
webdriverio
webhosthidden
Wexceptions
@ -876,10 +879,10 @@ WININET
winmd
Winmdexp
winmdobj
WINRT
winrt
winrtcpp
wintest
WINUI
winui
WINUSERAPI
wkthis
wname
@ -891,6 +894,7 @@ writeargs
WRITEFAULT
Wshorten
wsje
wstring
wtoi
Wunused
xapp

Просмотреть файл

@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Spellcheck update 7/11/2023",
"packageName": "@react-native-windows/cli",
"email": "jthysell@microsoft.com",
"dependentChangeType": "patch"
}

Просмотреть файл

@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Spellcheck update 7/11/2023",
"packageName": "react-native-windows",
"email": "jthysell@microsoft.com",
"dependentChangeType": "patch"
}

Просмотреть файл

@ -12,6 +12,7 @@
"format": "format-files -i -style=file -assume-filename=../.clang-format",
"format:verify": "format-files -i -style=file -verify",
"postinstall": "yarn build",
"spellcheck": "npx cspell",
"test": "lage test --verbose",
"validate-overrides": "react-native-platform-override validate"
},

Просмотреть файл

@ -24,7 +24,7 @@ test('Verify list of health checks aligns with rnw-dependencies', async () => {
{stdio: 'pipe'},
);
const deps = rnwDeps.toString().trim().split('\n');
const rnwHelathChecks = deps.map(dep => {
const rnwHealthChecks = deps.map(dep => {
const match = /([^:]+): ([^:]+): (.*)/.exec(dep);
if (!match) {
throw new Error(`Unexpected output from ${rnwDepScriptPath}`);
@ -33,5 +33,5 @@ test('Verify list of health checks aligns with rnw-dependencies', async () => {
return [optional.trim() === 'Required', id, name];
});
expect(HealthCheckList).toEqual(rnwHelathChecks);
expect(HealthCheckList).toEqual(rnwHealthChecks);
});

Просмотреть файл

@ -233,11 +233,11 @@ class HermesScriptCache {
class HermesLocalConnection : public facebook::react::ILocalConnection {
public:
HermesLocalConnection(
std::unique_ptr<facebook::react::IRemoteConnection> remoteConneciton,
std::unique_ptr<facebook::react::IRemoteConnection> remoteConnection,
void *connectFunc) noexcept {
CRASH_ON_ERROR(getHermesApi().hermes_create_local_connection(
connectFunc,
reinterpret_cast<hermes_remote_connection>(remoteConneciton.release()),
reinterpret_cast<hermes_remote_connection>(remoteConnection.release()),
&OnRemoteConnectionSendMessage,
&OnRemoteConnectionDisconnect,
&OnRemoteConnectionDelete,
@ -279,9 +279,9 @@ int32_t NAPI_CDECL addInspectorPage(const char *title, const char *vm, void *con
title,
vm,
[connectFunc,
hermesApi = HermesApi::current()](std::unique_ptr<facebook::react::IRemoteConnection> remoteConneciton) {
hermesApi = HermesApi::current()](std::unique_ptr<facebook::react::IRemoteConnection> remoteConnection) {
HermesApi::Scope apiScope(hermesApi);
return std::make_unique<HermesLocalConnection>(std::move(remoteConneciton), connectFunc);
return std::make_unique<HermesLocalConnection>(std::move(remoteConnection), connectFunc);
});
}
@ -359,7 +359,7 @@ void HermesRuntimeHolder::crashHandler(int fileDescriptor) noexcept {
}
void HermesRuntimeHolder::teardown() noexcept {
// TODO: (vmoroz) Implement
// TODO: (@vmoroz) Implement
}
std::shared_ptr<HermesRuntimeHolder> HermesRuntimeHolder::loadFrom(

Просмотреть файл

@ -59,7 +59,7 @@ DefaultBlobResource::DefaultBlobResource(
auto blobPersistor = std::make_shared<MemoryBlobPersistor>();
auto contentHandler = std::make_shared<BlobWebSocketModuleContentHandler>(blobPersistor);
auto requestBodyHanlder = std::make_shared<BlobModuleRequestBodyHandler>(blobPersistor);
auto requestBodyHandler = std::make_shared<BlobModuleRequestBodyHandler>(blobPersistor);
auto responseHandler = std::make_shared<BlobModuleResponseHandler>(blobPersistor);
auto contentHandlerPropId =
@ -71,7 +71,7 @@ DefaultBlobResource::DefaultBlobResource(
propBag.Set(blobPersistorPropId, weak_ptr<IBlobPersistor>{blobPersistor});
auto result = std::make_shared<DefaultBlobResource>(
blobPersistor, contentHandler, requestBodyHanlder, responseHandler, propBag);
blobPersistor, contentHandler, requestBodyHandler, responseHandler, propBag);
return result;
}

Просмотреть файл

@ -1548,7 +1548,7 @@ function InternalTextInput(props: Props): React.Node {
if (focusable && !accessible) {
console.warn(
'All focusable views should report proper accessiblity information. TextInputs marked as focusable should always be accessible.',
'All focusable views should report proper accessibility information. TextInputs marked as focusable should always be accessible.',
);
}

Просмотреть файл

@ -195,7 +195,7 @@ const View: React.AbstractComponent<
if (_focusable === true && _accessible === false) {
console.warn(
'All focusable views should report proper accessiblity information. Views marked as focusable should always be accessible.',
'All focusable views should report proper accessibility information. Views marked as focusable should always be accessible.',
);
}