diff --git a/core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php b/core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php index ac2746bcf6b1..56467361b564 100644 --- a/core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php +++ b/core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php @@ -17,6 +17,7 @@ class ExtensionMimeTypeGuesser implements MimeTypeGuesserInterface { * Array of mimetypes correlated to the extensions that relate to them. */ protected $defaultMapping = [ + // cspell:disable 'mimetypes' => [ 0 => 'application/andrew-inset', 1 => 'application/atom', @@ -867,6 +868,7 @@ class ExtensionMimeTypeGuesser implements MimeTypeGuesserInterface { 'json' => 361, 'avif' => 362, ], + // cspell:enable ]; /** diff --git a/core/lib/Drupal/Core/Mail/MailFormatHelper.php b/core/lib/Drupal/Core/Mail/MailFormatHelper.php index 87726dec3d86..c3fc206721f9 100644 --- a/core/lib/Drupal/Core/Mail/MailFormatHelper.php +++ b/core/lib/Drupal/Core/Mail/MailFormatHelper.php @@ -6,6 +6,8 @@ use Drupal\Component\Utility\Html; use Drupal\Component\Utility\Xss; use Drupal\Core\Site\Settings; +// cspell:ignore officedocument openxmlformats wordprocessingml + /** * Defines a class containing utility methods for formatting mail messages. */ diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt index 57152733ee03..f367186c6144 100644 --- a/core/misc/cspell/dictionary.txt +++ b/core/misc/cspell/dictionary.txt @@ -11,7 +11,6 @@ allwords alphadecimal ampm anyall -applix archiver archivers arrowrefresh @@ -152,7 +151,6 @@ contextuals controlgroup conv corge -cpio createrole createuser crema @@ -292,7 +290,6 @@ funic gabilondo gids gloop -gnumeric googleapis greeking gripsmall @@ -349,9 +346,6 @@ keypresses keyvalue kinberg kolkata -kpresenter -kspread -kword lamoids languageswitcher libc @@ -383,13 +377,10 @@ lrdd lstitle ltitle lzma -lzop -macbinary mainpage mank maryjane matchout -mathematica maximumred maxlifetime maynot @@ -423,7 +414,6 @@ montag msgctxt msgid msgstr -msword mucho mulrev mulrevpub @@ -478,14 +468,11 @@ nyan nyancat nyans oembed -officedocument omittable onecol oneplusfourgrid onetwo onewidgetfield -opendocument -openxmlformats optgroups optin orgchart @@ -550,7 +537,6 @@ preprocessors prerender prerendered presave -presentationml pretransaction preuninstall processlist @@ -653,13 +639,11 @@ specialchars spiffiness splitbutton splitbuttons -spreadsheetml squaresmall squiz squizlabs srcset ssess -stardivision starterkit statuscode stdclass @@ -672,7 +656,6 @@ strikethrough striptags strs sttid -stuffit styleguide stylelint stylescombo @@ -727,7 +710,6 @@ tablesorts tabset tabwidth tappable -tarz taskless tcomment templating @@ -842,8 +824,6 @@ webmozart webroot webservers widthx -wmlscript -wordprocessingml wordsafe writeln wwwrun diff --git a/core/modules/file/src/IconMimeTypes.php b/core/modules/file/src/IconMimeTypes.php index 982f8f45ac21..f1989aeab63c 100644 --- a/core/modules/file/src/IconMimeTypes.php +++ b/core/modules/file/src/IconMimeTypes.php @@ -4,8 +4,6 @@ declare(strict_types=1); namespace Drupal\file; -// cspell:ignore abiword - /** * A utility class for working with MIME types. */ @@ -48,6 +46,7 @@ final class IconMimeTypes { * The generic icon MIME package expected for this file. */ public static function getGenericMimeType(string $mimeType): string | false { + // cspell:disable switch ($mimeType) { // Word document types. case 'application/msword': @@ -171,6 +170,7 @@ final class IconMimeTypes { default: return FALSE; } + // cspell:enable } } diff --git a/core/modules/file/tests/src/Kernel/LegacyFileModuleTest.php b/core/modules/file/tests/src/Kernel/LegacyFileModuleTest.php index e3ff66a2bc5b..1239a570c801 100644 --- a/core/modules/file/tests/src/Kernel/LegacyFileModuleTest.php +++ b/core/modules/file/tests/src/Kernel/LegacyFileModuleTest.php @@ -6,6 +6,8 @@ namespace Drupal\Tests\file\Kernel; use Drupal\KernelTests\KernelTestBase; +// cspell:ignore msword + /** * Tests file module deprecations. * diff --git a/core/modules/jsonapi/tests/src/Functional/FileUploadTest.php b/core/modules/jsonapi/tests/src/Functional/FileUploadTest.php index 77a53c0c2ec0..bc566701d7af 100644 --- a/core/modules/jsonapi/tests/src/Functional/FileUploadTest.php +++ b/core/modules/jsonapi/tests/src/Functional/FileUploadTest.php @@ -18,7 +18,7 @@ use Drupal\user\Entity\User; use GuzzleHttp\RequestOptions; use Psr\Http\Message\ResponseInterface; -// cspell:ignore èxample +// cspell:ignore èxample msword /** * Tests binary data file upload route. diff --git a/core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php b/core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php index 5dba42b4d086..36aa1b00b973 100644 --- a/core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php @@ -18,7 +18,7 @@ use Drupal\user\Entity\User; use GuzzleHttp\RequestOptions; use Psr\Http\Message\ResponseInterface; -// cspell:ignore èxample +// cspell:ignore èxample msword /** * Tests binary data file upload route. diff --git a/core/modules/system/tests/src/Functional/DrupalKernel/ContentNegotiationTest.php b/core/modules/system/tests/src/Functional/DrupalKernel/ContentNegotiationTest.php index 8212a02623e3..84db05197d81 100644 --- a/core/modules/system/tests/src/Functional/DrupalKernel/ContentNegotiationTest.php +++ b/core/modules/system/tests/src/Functional/DrupalKernel/ContentNegotiationTest.php @@ -6,6 +6,8 @@ namespace Drupal\Tests\system\Functional\DrupalKernel; use Drupal\Tests\BrowserTestBase; +// cspell:ignore msword + /** * Tests content negotiation. * diff --git a/core/tests/Drupal/Tests/Core/Mail/MailFormatHelperTest.php b/core/tests/Drupal/Tests/Core/Mail/MailFormatHelperTest.php index 52b4bbd0f6e8..f0cac252767c 100644 --- a/core/tests/Drupal/Tests/Core/Mail/MailFormatHelperTest.php +++ b/core/tests/Drupal/Tests/Core/Mail/MailFormatHelperTest.php @@ -7,6 +7,8 @@ namespace Drupal\Tests\Core\Mail; use Drupal\Core\Mail\MailFormatHelper; use Drupal\Tests\UnitTestCase; +// cspell:ignore officedocument openxmlformats wordprocessingml + /** * @coversDefaultClass \Drupal\Core\Mail\MailFormatHelper * @group Mail