diff --git a/.cspell-project-words.txt b/.cspell-project-words.txt index 5c6b8b69554641cfbefd7c4911a224c74e65ac11..af16343f01495bf0cd6c3f89ac1ea20c3bbeed5b 100644 --- a/.cspell-project-words.txt +++ b/.cspell-project-words.txt @@ -1,12 +1,6 @@ # List of words excluded from cspell validation for the project Entity Usage. basefield basefields -embed -embedd linkit -myref -onlyone -summarise -testlist webform webforms diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4588c9d7cfc0161e64a318bc895785926da3f5fd..4275da352c721fba4c019f327972f1ac2e19fe8a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,3 +42,7 @@ phpcs: allow_failure: false phpstan: allow_failure: false +cspell: + allow_failure: false +eslint: + allow_failure: false diff --git a/src/Controller/ListUsageController.php b/src/Controller/ListUsageController.php index 754d01ba12f5aed862c67c4ca5bbd10038ea7917..6f17b7edc6b7dec50f4cfd60ed6ae4fd7a809bfa 100644 --- a/src/Controller/ListUsageController.php +++ b/src/Controller/ListUsageController.php @@ -260,7 +260,7 @@ class ListUsageController extends ControllerBase { foreach ($revision_groups as $index => $label) { if (!empty($revisions[$index])) { - $used_in[] = $this->summariseRevisionGroup($default_langcode, $label, $revisions[$index]); + $used_in[] = $this->summarizeRevisionGroup($default_langcode, $label, $revisions[$index]); } } @@ -319,7 +319,7 @@ class ListUsageController extends ControllerBase { * @return array * A render array summarizing the information passed in. */ - protected function summariseRevisionGroup($default_langcode, $revision_label, array $languages) { + protected function summarizeRevisionGroup($default_langcode, $revision_label, array $languages) { $language_objects = $this->languageManager()->getLanguages(LanguageInterface::STATE_ALL); if (count($languages) === 1 && !empty($languages[$default_langcode])) { // If there's only one relevant revision and it's the entity's default diff --git a/src/EntityUpdateManagerInterface.php b/src/EntityUpdateManagerInterface.php index 1385378470b9a0a2510137439f2bd16c7d147096..8e519767b3035b252821052e04232e33a6af12d5 100644 --- a/src/EntityUpdateManagerInterface.php +++ b/src/EntityUpdateManagerInterface.php @@ -37,7 +37,7 @@ interface EntityUpdateManagerInterface { * - default: The main entity (default language, default revision) is being * deleted (delete also other languages and revisions). * - translation: Only one translation is being deleted. - * - revision: Onlyone revision is being deleted. + * - revision: Only one revision is being deleted. * * @throws \InvalidArgumentException */ diff --git a/tests/src/Functional/EntityUsageLayoutBuilderTest.php b/tests/src/Functional/EntityUsageLayoutBuilderTest.php index 149a1f492d6e9d449b373fa52440861031f9a868..e1edef79079736f8dd02ad2014e68fea47ea3982 100644 --- a/tests/src/Functional/EntityUsageLayoutBuilderTest.php +++ b/tests/src/Functional/EntityUsageLayoutBuilderTest.php @@ -92,7 +92,7 @@ class EntityUsageLayoutBuilderTest extends BrowserTestBase { $type->save(); $fieldStorage = FieldStorageConfig::create([ - 'field_name' => 'myref', + 'field_name' => 'my_ref', 'entity_type' => 'block_content', 'type' => 'entity_reference', 'settings' => [ @@ -109,14 +109,14 @@ class EntityUsageLayoutBuilderTest extends BrowserTestBase { $block = BlockContent::create([ 'type' => $type->id(), 'reusable' => 0, - 'myref' => $innerEntity, + 'my_ref' => $innerEntity, ]); $block->save(); $block2 = BlockContent::create([ 'type' => $type->id(), 'reusable' => 1, - 'myref' => $innerEntity2, + 'my_ref' => $innerEntity2, ]); $block2->save(); diff --git a/tests/src/FunctionalJavascript/EmbeddedContentTest.php b/tests/src/FunctionalJavascript/EmbeddedContentTest.php index 6cedbb761f7d771a0d88770d1873ecccba213d19..f8e81f50ecf95e23fca46ff772f90dde07f4c96b 100644 --- a/tests/src/FunctionalJavascript/EmbeddedContentTest.php +++ b/tests/src/FunctionalJavascript/EmbeddedContentTest.php @@ -550,7 +550,7 @@ class EmbeddedContentTest extends EntityUsageJavascriptTestBase { /** * Tests the MediaEmbed plugin parsing does not error with malformed HTML. */ - public function testMediaEmbeddWithMalformedHtml() { + public function testMediaEmbedWithMalformedHtml() { $embedded_text = '<drupal-media data-entity-type="media" data-entity-uuid=""></drupal-media>'; $node = Node::create([ diff --git a/tests/src/Kernel/EntityUsageTest.php b/tests/src/Kernel/EntityUsageTest.php index 46fc2d96d43c4cdb9d7e72530d36e6a4ac3ea6ef..f33ed3c27052417fc3952538dbf773b4c6aa3c9d 100644 --- a/tests/src/Kernel/EntityUsageTest.php +++ b/tests/src/Kernel/EntityUsageTest.php @@ -103,7 +103,7 @@ class EntityUsageTest extends EntityKernelTestBase { * @covers \Drupal\entity_usage\EntityUsage::listSources * @covers \Drupal\entity_usage\EntityUsage::listTargets */ - public function testlistSources() { + public function testListSources() { // Add additional entity to test with more than 1 source. $entity_3 = EntityTest::create(['name' => $this->randomMachineName()]); $entity_3->save();