diff --git a/composer/Plugin/Scaffold/Git.php b/composer/Plugin/Scaffold/Git.php index c604b2741bd..973b80c571e 100644 --- a/composer/Plugin/Scaffold/Git.php +++ b/composer/Plugin/Scaffold/Git.php @@ -2,6 +2,8 @@ namespace Drupal\Composer\Plugin\Scaffold; +// cspell:ignore unmatch + use Composer\IO\IOInterface; use Composer\Util\ProcessExecutor; diff --git a/composer/Plugin/Scaffold/README.md b/composer/Plugin/Scaffold/README.md index 32bd25c37d9..b2c89da1e1b 100644 --- a/composer/Plugin/Scaffold/README.md +++ b/composer/Plugin/Scaffold/README.md @@ -19,7 +19,7 @@ possible; for example, a project layout very similar to the current [drupal-composer/drupal-project](https://github.com/drupal-composer/drupal-scaffold) template will also be provided. When one of these projects is used, the user should be able to use `composer require` and `composer update` on a Drupal site -immediately after untarring the downloaded archive. +immediately after extracting the downloaded archive. Note that the dependencies of a Drupal site are only able to scaffold files if explicitly granted that right in the top-level composer.json file. See diff --git a/core/lib/Drupal/Core/Cache/CacheCollector.php b/core/lib/Drupal/Core/Cache/CacheCollector.php index 5250e1b049a..e713d16a762 100644 --- a/core/lib/Drupal/Core/Cache/CacheCollector.php +++ b/core/lib/Drupal/Core/Cache/CacheCollector.php @@ -187,7 +187,7 @@ abstract class CacheCollector implements CacheCollectorInterface, DestructableIn * The key that was requested. * @param bool $persist * (optional) Whether the offset should be persisted or not, defaults to - * TRUE. When called with $persist = FALSE the offset will be unflagged so + * TRUE. When called with $persist = FALSE the offset will be un-flagged so * that it will not be written at the end of the request. */ protected function persist($key, $persist = TRUE) { diff --git a/core/lib/Drupal/Core/Database/Database.php b/core/lib/Drupal/Core/Database/Database.php index c641ac203de..b7fd9ed419c 100644 --- a/core/lib/Drupal/Core/Database/Database.php +++ b/core/lib/Drupal/Core/Database/Database.php @@ -11,9 +11,9 @@ use Drupal\Core\Cache\NullBackend; /** * Primary front-controller for the database system. * - * This class is uninstantiatable and un-extendable. It acts to encapsulate - * all control and shepherding of database connections into a single location - * without the use of globals. + * This class is un-extendable. It acts to encapsulate all control and + * shepherding of database connections into a single location without the use of + * globals. */ abstract class Database { diff --git a/core/lib/Drupal/Core/Mail/MailFormatHelper.php b/core/lib/Drupal/Core/Mail/MailFormatHelper.php index 7626736ad81..87726dec3d8 100644 --- a/core/lib/Drupal/Core/Mail/MailFormatHelper.php +++ b/core/lib/Drupal/Core/Mail/MailFormatHelper.php @@ -308,7 +308,7 @@ class MailFormatHelper { } } if (!$line_is_mime_header) { - // Use soft-breaks only for purely quoted or unindented text. + // Use soft-breaks only for purely quoted or un-indented text. $line = wordwrap($line, 77 - $values['length'], $values['soft'] ? " \n" : "\n"); } // Break really long words at the maximum width allowed. diff --git a/core/lib/Drupal/Core/Queue/Memory.php b/core/lib/Drupal/Core/Queue/Memory.php index ba9d2494dbe..a7e421a145f 100644 --- a/core/lib/Drupal/Core/Queue/Memory.php +++ b/core/lib/Drupal/Core/Queue/Memory.php @@ -5,7 +5,7 @@ namespace Drupal\Core\Queue; /** * Static queue implementation. * - * This allows "undelayed" variants of processes relying on the Queue + * This allows "un-delayed" variants of processes relying on the Queue * interface. The queue data resides in memory. It should only be used for * items that will be queued and dequeued within a given page request. * diff --git a/core/lib/Drupal/Core/Render/Element/Link.php b/core/lib/Drupal/Core/Render/Element/Link.php index adbd38584a2..b84a1b6ab5a 100644 --- a/core/lib/Drupal/Core/Render/Element/Link.php +++ b/core/lib/Drupal/Core/Render/Element/Link.php @@ -112,7 +112,7 @@ class Link extends RenderElement { * * This method can be added as a pre_render callback for a renderable array, * usually one which will be themed by links.html.twig. It iterates through - * all unrendered children of the element, collects any #links properties it + * all un-rendered children of the element, collects any #links properties it * finds, merges them into the parent element's #links array, and prevents * those children from being rendered separately. * diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt index f64a551e128..8785df0da9e 100644 --- a/core/misc/cspell/dictionary.txt +++ b/core/misc/cspell/dictionary.txt @@ -884,8 +884,6 @@ typehints tzid uids ulwa -unaliased -unallowed unassigning unassigns unban @@ -895,39 +893,24 @@ uncacheable uncategorized unclickable uncollapsible -unconfigured -undelayed undoable -undraggable -unextracted unfieldable -unflagged ungenerated ungroup ungroupable -unhashed -unhides -unindented unindexed uninstallation uninstallations -uninstantiatable -uninstantiated -unixepoch -unkeyed unmanaged -unmatch unminified unmoderated unparseable -unpreloaded unpromote unpromoted unpublish unpublishes unpublishing unregisters -unrendered unrevisionable unrouted unsanitized @@ -937,12 +920,8 @@ unserializes unserializing unsets unsetting -unshortened -unsimplified unsticky untabbable -untarring -untrustable unvalidated unwrapper upcasted diff --git a/core/misc/tabledrag.js b/core/misc/tabledrag.js index c50de1ff3b8..7d261371449 100644 --- a/core/misc/tabledrag.js +++ b/core/misc/tabledrag.js @@ -608,7 +608,7 @@ previousRow.matches('.draggable') ) { // Swap with the previous row (unless previous row is the first - // one and undraggable). + // one and un-draggable). self.rowObject.swap('before', previousRow); self.rowObject.interval = null; self.rowObject.indent(0); diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php index 9cfabd27433..a30b9ce9f65 100644 --- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php +++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php @@ -125,7 +125,7 @@ abstract class ImageTestBase extends CKEditor5TestBase { "

$img_tag

", $expected_upcast_behavior_when_wrapped_in_block_element === 'inline' ? "

$img_tag

" : $img_tag, ], - // Image tag wrapped with an unallowed paragraph-like element ( // because it still must wrap in a paragraph-like element, and

is // available to be that element. diff --git a/core/modules/filter/src/FilterFormatFormBase.php b/core/modules/filter/src/FilterFormatFormBase.php index 00e8bdf1579..7ff00b89de3 100644 --- a/core/modules/filter/src/FilterFormatFormBase.php +++ b/core/modules/filter/src/FilterFormatFormBase.php @@ -61,7 +61,7 @@ abstract class FilterFormatFormBase extends EntityForm { } // Create filter plugin instances for all available filters, including both - // enabled/configured ones as well as new and not yet unconfigured ones. + // enabled/configured ones as well as new and not yet configured ones. $filters = $format->filters(); foreach ($filters as $filter_id => $filter) { // When a filter is missing, it is replaced by the null filter. Remove it diff --git a/core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php b/core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php index 70acc59b340..a132c8234cb 100644 --- a/core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php +++ b/core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php @@ -44,7 +44,7 @@ class LayoutSectionItem extends FieldItemBase { */ public function __get($name) { // @todo \Drupal\Core\Field\FieldItemBase::__get() does not return default - // values for uninstantiated properties. This will forcibly instantiate + // values for un-instantiated properties. This will forcibly instantiate // all properties with the side-effect of a performance hit, resolve // properly in https://www.drupal.org/node/2413471. $this->getProperties(); diff --git a/core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php b/core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php index 75a3734e200..9e47cbe1d60 100644 --- a/core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php +++ b/core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php @@ -32,8 +32,8 @@ class LocaleStringIsSafeTest extends KernelTestBase { $result = locale_string_is_safe($string); $this->assertTrue($result); - // Check an untranslatable string which includes untrustable HTML (according - // to the locale_string_is_safe() function definition). + // Check an untranslatable string which includes unsafe HTML (according to + // the locale_string_is_safe() function definition). $string = 'Hello world!'; $result = locale_string_is_safe($string); $this->assertFalse($result); diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php index f0e757312fc..6cdfc690011 100644 --- a/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php +++ b/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php @@ -277,7 +277,7 @@ class MenuUiNodeTest extends BrowserTestBase { // Assert that it is not possible to set the parent of the first node to itself or the second node. $this->assertSession()->optionNotExists('edit-menu-menu-parent', 'tools:' . $item->getPluginId()); $this->assertSession()->optionNotExists('edit-menu-menu-parent', 'tools:' . $child_item->getPluginId()); - // Assert that unallowed Administration menu is not available in options. + // Assert that disallowed Administration menu is not available in options. $this->assertSession()->optionNotExists('edit-menu-menu-parent', 'admin:'); } diff --git a/core/modules/migrate/src/Plugin/MigrateIdMapInterface.php b/core/modules/migrate/src/Plugin/MigrateIdMapInterface.php index e224dae4787..569428d2759 100644 --- a/core/modules/migrate/src/Plugin/MigrateIdMapInterface.php +++ b/core/modules/migrate/src/Plugin/MigrateIdMapInterface.php @@ -251,7 +251,7 @@ interface MigrateIdMapInterface extends \Iterator, PluginInspectionInterface { * * @param array $source_id_values * The source identifier keyed values of the records, e.g. ['nid' => 5]. - * If unkeyed, the first count($source_id_values) keys will be assumed. + * If un-keyed, the first count($source_id_values) keys will be assumed. * * @return array * An array of arrays of destination identifier values. diff --git a/core/modules/path/src/PathAliasListBuilder.php b/core/modules/path/src/PathAliasListBuilder.php index 3b41c51c7d9..76e9d47d5e3 100644 --- a/core/modules/path/src/PathAliasListBuilder.php +++ b/core/modules/path/src/PathAliasListBuilder.php @@ -171,7 +171,7 @@ class PathAliasListBuilder extends EntityListBuilder { '#url' => $url, ]; - // Create a new URL for linking to the unaliased system path. + // Create a new URL for linking to the un-aliased system path. $system_url = Url::fromUri("base:{$path}"); $row['data']['path']['data'] = [ '#type' => 'link', diff --git a/core/modules/path_alias/tests/src/Unit/AliasManagerTest.php b/core/modules/path_alias/tests/src/Unit/AliasManagerTest.php index 2a52e3e719d..0a2326fbe90 100644 --- a/core/modules/path_alias/tests/src/Unit/AliasManagerTest.php +++ b/core/modules/path_alias/tests/src/Unit/AliasManagerTest.php @@ -399,7 +399,7 @@ class AliasManagerTest extends UnitTestCase { } /** - * Tests the getAliasByPath cache with an unpreloaded path without alias. + * Tests the getAliasByPath cache with an un-preloaded path without alias. * * @covers ::getAliasByPath * @covers ::writeCache @@ -483,7 +483,7 @@ class AliasManagerTest extends UnitTestCase { } /** - * Tests the getAliasByPath cache with an unpreloaded path with alias. + * Tests the getAliasByPath cache with an un-preloaded path with alias. * * @covers ::getAliasByPath * @covers ::writeCache diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php index 3ad10537b5a..23f2f5ba918 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php @@ -451,14 +451,14 @@ abstract class EntityResourceTestBase extends ResourceTestBase { $request_options[RequestOptions::HEADERS]['REST-test-auth'] = '1'; - // DX: 403 when attempting to use unallowed authentication provider. + // DX: 403 when attempting to use disallowed authentication provider. $response = $this->request('GET', $url, $request_options); $this->assertResourceErrorResponse(403, 'The used authentication method is not allowed on this route.', $response); unset($request_options[RequestOptions::HEADERS]['REST-test-auth']); $request_options[RequestOptions::HEADERS]['REST-test-auth-global'] = '1'; - // DX: 403 when attempting to use unallowed global authentication provider. + // DX: 403 when attempting to use disallowed global authentication provider. $response = $this->request('GET', $url, $request_options); $this->assertResourceErrorResponse(403, 'The used authentication method is not allowed on this route.', $response); diff --git a/core/modules/search/tests/src/Kernel/SearchExcerptTest.php b/core/modules/search/tests/src/Kernel/SearchExcerptTest.php index 2c2bc79001e..5fbf7562fd4 100644 --- a/core/modules/search/tests/src/Kernel/SearchExcerptTest.php +++ b/core/modules/search/tests/src/Kernel/SearchExcerptTest.php @@ -72,7 +72,8 @@ class SearchExcerptTest extends KernelTestBase { * * Excerpting should handle keywords that are matched only after going through * text analysis. This test passes keywords that match simplified words - * and compares them with strings that contain the original unsimplified word. + * and compares them with strings that contain the original un-simplified + * word. */ public function testSearchExcerptSimplified() { $start_time = microtime(TRUE); diff --git a/core/modules/update/update.api.php b/core/modules/update/update.api.php index 18ff68f9d0c..ba8617df4f9 100644 --- a/core/modules/update/update.api.php +++ b/core/modules/update/update.api.php @@ -110,7 +110,7 @@ function hook_update_status_alter(&$projects) { * @param string $project * The short name of the project that has been downloaded. * @param string $archive_file - * The filename of the unextracted archive. + * The filename of the un-extracted archive. * @param string $directory * The directory that the archive was extracted into. * diff --git a/core/modules/update/update.manager.inc b/core/modules/update/update.manager.inc index ca44f20ad93..a0c2259661d 100644 --- a/core/modules/update/update.manager.inc +++ b/core/modules/update/update.manager.inc @@ -193,7 +193,7 @@ function update_manager_archive_extract($file, $directory) { * @param string $project * The short name of the project to download. * @param string $archive_file - * The filename of the unextracted archive. + * The filename of the un-extracted archive. * @param string $directory * The directory that the archive was extracted into. * diff --git a/core/modules/user/src/UserInterface.php b/core/modules/user/src/UserInterface.php index 51c7601a792..bb69884c886 100644 --- a/core/modules/user/src/UserInterface.php +++ b/core/modules/user/src/UserInterface.php @@ -107,7 +107,7 @@ interface UserInterface extends ContentEntityInterface, EntityChangedInterface, * Sets the user password. * * @param string $password - * The new unhashed password. + * The new un-hashed password. * * @return $this * The called user entity. diff --git a/core/modules/user/user.module b/core/modules/user/user.module index f68fabe0d41..8ee98349b87 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -382,7 +382,7 @@ function template_preprocess_username(&$variables) { } // Set the name to a formatted name that is safe for printing and - // that won't break tables by being too long. Keep an unshortened, + // that won't break tables by being too long. Keep an un-shortened, // unsanitized version, in case other preprocess functions want to implement // their own shortening logic or add markup. If they do so, they must ensure // that $variables['name'] is safe for printing. diff --git a/core/modules/views/src/Plugin/views/query/Sql.php b/core/modules/views/src/Plugin/views/query/Sql.php index c0f9c8867f2..af57e33ec48 100644 --- a/core/modules/views/src/Plugin/views/query/Sql.php +++ b/core/modules/views/src/Plugin/views/query/Sql.php @@ -581,7 +581,7 @@ class Sql extends QueryPluginBase { * table. * * @param $table - * The unaliased name of the table to ensure. + * The un-aliased name of the table to ensure. * @param $relationship * The relationship to ensure the table links to. Each relationship will * get a unique instance of the table being added. If not specified, diff --git a/core/modules/views/src/Plugin/views/query/SqliteDateSql.php b/core/modules/views/src/Plugin/views/query/SqliteDateSql.php index db7fc4a6cc0..b93b29ae356 100644 --- a/core/modules/views/src/Plugin/views/query/SqliteDateSql.php +++ b/core/modules/views/src/Plugin/views/query/SqliteDateSql.php @@ -5,6 +5,8 @@ namespace Drupal\views\Plugin\views\query; use Drupal\Core\Database\Connection; use Drupal\Core\DependencyInjection\DependencySerializationTrait; +// cspell:ignore unixepoch + /** * SQLite-specific date handling. * diff --git a/core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php b/core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php index e2406750a79..b7bc31f0557 100644 --- a/core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php @@ -8,6 +8,8 @@ use Drupal\Core\Database\Connection; use Drupal\Tests\UnitTestCase; use Drupal\views\Plugin\views\query\SqliteDateSql; +// cspell:ignore unixepoch + /** * Tests the MySQL-specific date query handler. * diff --git a/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php b/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php index 12085d1e226..b048cc3cba4 100644 --- a/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php +++ b/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php @@ -246,7 +246,7 @@ class ComposerProjectTemplatesTest extends ComposerBuildTestBase { $this->assertCommandSuccessful(); // Check the output of the project creation for the absence of warnings // about any non-allowed composer plugins. - // Note: There are different warnings for unallowed composer plugins + // Note: There are different warnings for disallowed composer plugins // depending on running in non-interactive mode or not. It seems the Drupal // CI environment always forces composer commands to run in the // non-interactive mode. The only thing these messages have in common is the diff --git a/core/tests/Drupal/Tests/Component/Utility/XssTest.php b/core/tests/Drupal/Tests/Component/Utility/XssTest.php index 2cf89d233e6..0f242959ebe 100644 --- a/core/tests/Drupal/Tests/Component/Utility/XssTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/XssTest.php @@ -567,7 +567,7 @@ class XssTest extends TestCase { } /** - * Checks that \Drupal\Component\Utility\Xss::filterAdmin() correctly strips unallowed tags. + * Checks that \Drupal\Component\Utility\Xss::filterAdmin() correctly strips disallowed tags. */ public function testFilterXSSAdmin() { $value = Xss::filterAdmin('