diff --git a/core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php b/core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php index ac2746bcf6b..56467361b56 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 87726dec3d8..c3fc206721f 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 1784c5edb5b..a21c83cffe6 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 @@ -293,7 +291,6 @@ funic gabilondo gids gloop -gnumeric googleapis greeking gripsmall @@ -350,9 +347,6 @@ keypresses keyvalue kinberg kolkata -kpresenter -kspread -kword lamoids languageswitcher libc @@ -384,13 +378,10 @@ lrdd lstitle ltitle lzma -lzop -macbinary mainpage mank maryjane matchout -mathematica maximumred maxlifetime maynot @@ -424,7 +415,6 @@ montag msgctxt msgid msgstr -msword mucho mulrev mulrevpub @@ -480,14 +470,11 @@ nyan nyancat nyans oembed -officedocument omittable onecol oneplusfourgrid onetwo onewidgetfield -opendocument -openxmlformats optgroups optin orgchart @@ -553,7 +540,6 @@ preprocessors prerender prerendered presave -presentationml pretransaction preuninstall processlist @@ -657,13 +643,11 @@ specialchars spiffiness splitbutton splitbuttons -spreadsheetml squaresmall squiz squizlabs srcset ssess -stardivision starterkit statuscode stdclass @@ -676,7 +660,6 @@ strikethrough striptags strs sttid -stuffit styleguide stylelint stylescombo @@ -731,7 +714,6 @@ tablesorts tabset tabwidth tappable -tarz taskless tcomment templating @@ -846,8 +828,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 982f8f45ac2..f1989aeab63 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 e3ff66a2bc5..1239a570c80 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 77a53c0c2ec..bc566701d7a 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 5dba42b4d08..36aa1b00b97 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 8212a02623e..84db05197d8 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 52b4bbd0f6e..f0cac252767 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