From 57f88c3c66600e66130f5593944c6a650d515050 Mon Sep 17 00:00:00 2001 From: Jon Thysell Date: Wed, 19 Jul 2023 11:36:56 -0700 Subject: [PATCH] Spellcheck update 7/11/2023 (#11894) ## 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 --- .cspell.json | 1 + .spelling | 114 +++++++++--------- ...-9a018e15-0273-415e-959f-3e4be94e544c.json | 7 ++ ...-6ad43580-2e16-403a-b4f2-1238f29863b5.json | 7 ++ package.json | 1 + .../cli/src/e2etest/healthChecks.test.ts | 4 +- vnext/Shared/HermesRuntimeHolder.cpp | 10 +- .../Shared/Networking/DefaultBlobResource.cpp | 4 +- .../Components/TextInput/TextInput.windows.js | 2 +- .../Libraries/Components/View/View.windows.js | 2 +- 10 files changed, 86 insertions(+), 66 deletions(-) create mode 100644 change/@react-native-windows-cli-9a018e15-0273-415e-959f-3e4be94e544c.json create mode 100644 change/react-native-windows-6ad43580-2e16-403a-b4f2-1238f29863b5.json diff --git a/.cspell.json b/.cspell.json index 47e77ef511..93329a1e3f 100644 --- a/.cspell.json +++ b/.cspell.json @@ -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", diff --git a/.spelling b/.spelling index 145afe57e8..fe94c2e6c7 100644 --- a/.spelling +++ b/.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 diff --git a/change/@react-native-windows-cli-9a018e15-0273-415e-959f-3e4be94e544c.json b/change/@react-native-windows-cli-9a018e15-0273-415e-959f-3e4be94e544c.json new file mode 100644 index 0000000000..3cc08ed4ae --- /dev/null +++ b/change/@react-native-windows-cli-9a018e15-0273-415e-959f-3e4be94e544c.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Spellcheck update 7/11/2023", + "packageName": "@react-native-windows/cli", + "email": "jthysell@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/change/react-native-windows-6ad43580-2e16-403a-b4f2-1238f29863b5.json b/change/react-native-windows-6ad43580-2e16-403a-b4f2-1238f29863b5.json new file mode 100644 index 0000000000..e7dd1dcdda --- /dev/null +++ b/change/react-native-windows-6ad43580-2e16-403a-b4f2-1238f29863b5.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Spellcheck update 7/11/2023", + "packageName": "react-native-windows", + "email": "jthysell@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/package.json b/package.json index 80482e5b9b..8db772a1dd 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/packages/@react-native-windows/cli/src/e2etest/healthChecks.test.ts b/packages/@react-native-windows/cli/src/e2etest/healthChecks.test.ts index dd1245babe..b37bb3e2ab 100644 --- a/packages/@react-native-windows/cli/src/e2etest/healthChecks.test.ts +++ b/packages/@react-native-windows/cli/src/e2etest/healthChecks.test.ts @@ -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); }); diff --git a/vnext/Shared/HermesRuntimeHolder.cpp b/vnext/Shared/HermesRuntimeHolder.cpp index d2e9bcb228..8dfc5d4328 100644 --- a/vnext/Shared/HermesRuntimeHolder.cpp +++ b/vnext/Shared/HermesRuntimeHolder.cpp @@ -233,11 +233,11 @@ class HermesScriptCache { class HermesLocalConnection : public facebook::react::ILocalConnection { public: HermesLocalConnection( - std::unique_ptr remoteConneciton, + std::unique_ptr remoteConnection, void *connectFunc) noexcept { CRASH_ON_ERROR(getHermesApi().hermes_create_local_connection( connectFunc, - reinterpret_cast(remoteConneciton.release()), + reinterpret_cast(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 remoteConneciton) { + hermesApi = HermesApi::current()](std::unique_ptr remoteConnection) { HermesApi::Scope apiScope(hermesApi); - return std::make_unique(std::move(remoteConneciton), connectFunc); + return std::make_unique(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::loadFrom( diff --git a/vnext/Shared/Networking/DefaultBlobResource.cpp b/vnext/Shared/Networking/DefaultBlobResource.cpp index 5f08a0240f..a6675dc664 100644 --- a/vnext/Shared/Networking/DefaultBlobResource.cpp +++ b/vnext/Shared/Networking/DefaultBlobResource.cpp @@ -59,7 +59,7 @@ DefaultBlobResource::DefaultBlobResource( auto blobPersistor = std::make_shared(); auto contentHandler = std::make_shared(blobPersistor); - auto requestBodyHanlder = std::make_shared(blobPersistor); + auto requestBodyHandler = std::make_shared(blobPersistor); auto responseHandler = std::make_shared(blobPersistor); auto contentHandlerPropId = @@ -71,7 +71,7 @@ DefaultBlobResource::DefaultBlobResource( propBag.Set(blobPersistorPropId, weak_ptr{blobPersistor}); auto result = std::make_shared( - blobPersistor, contentHandler, requestBodyHanlder, responseHandler, propBag); + blobPersistor, contentHandler, requestBodyHandler, responseHandler, propBag); return result; } diff --git a/vnext/src/Libraries/Components/TextInput/TextInput.windows.js b/vnext/src/Libraries/Components/TextInput/TextInput.windows.js index 35e79ebb8e..d6683a76a0 100644 --- a/vnext/src/Libraries/Components/TextInput/TextInput.windows.js +++ b/vnext/src/Libraries/Components/TextInput/TextInput.windows.js @@ -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.', ); } diff --git a/vnext/src/Libraries/Components/View/View.windows.js b/vnext/src/Libraries/Components/View/View.windows.js index aafaf40114..c527856708 100644 --- a/vnext/src/Libraries/Components/View/View.windows.js +++ b/vnext/src/Libraries/Components/View/View.windows.js @@ -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.', ); }