Verbatim mirror of the git.drupal.org repository for Drupal core. Please see the https://github.com/drupal/drupal#contributing. PRs are not accepted on GitHub.
This report summarizes scanner evidence for drupal/drupal, a PHP project with 4,291 GitHub stars. SynthScan examined 1,620,389 lines of code across 13994 source files, recording 7554 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 4.9 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 7128 finding(s).
Are imports declared and package/API names verified? 426 finding(s).
Are wrappers, guards, and repeated structures necessary? 6780 finding(s).
Which changes need focused human review? 7554 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 7554 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …pal/FunctionalTests/GetTestMethodCallerExtendsTest.php | 26 | public function testGetTestMethodCallerChildClass(): void { | CODE |
| LOW | …e/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php | 273 | public function testFieldAssertsForTextfields(): void { | CODE |
| LOW | …e/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php | 376 | public function testFieldAssertsForCheckbox(): void { | CODE |
| LOW | …e/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php | 526 | public function testGetDefaultDriveInstance(): void { | CODE |
| LOW | …e/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php | 614 | public function testDeprecationTriggeredInSystemUnderTest(): void { | CODE |
| LOW | …e/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php | 659 | public function testSimpleTestBaseUrlValidation(): void { | CODE |
| LOW | …FunctionalTests/HttpKernel/DestructableServiceTest.php | 32 | public function testDestructableServiceExecutionOrder(): void { | CODE |
| LOW | …l/FunctionalTests/Core/Test/ModuleInstallBatchTest.php | 36 | public function testLoadingEntitiesCreatedInBatch(): void { | CODE |
| LOW | …upal/FunctionalTests/Core/Recipe/RecipeCommandTest.php | 90 | public function testIsApplyingDuringBatch(): void { | CODE |
| LOW | …upal/FunctionalTests/Core/Recipe/RecipeCommandTest.php | 132 | public function testErrorOnNonExistentDirectory(): void { | CODE |
| LOW | …upal/FunctionalTests/Core/Recipe/RecipeCommandTest.php | 172 | public function testConstantInRecipeAction(): void { | CODE |
| LOW | …upal/FunctionalTests/Core/Recipe/RecipeCommandTest.php | 185 | public function testBrokenEnumInRecipeAction(): void { | CODE |
| LOW | …upal/FunctionalTests/Core/Recipe/RecipeCommandTest.php | 220 | public function testDefaultInputValueFromConfig(): void { | CODE |
| LOW | …ctionalTests/Core/Recipe/StandardRecipeInstallTest.php | 109 | protected function installDefaultThemeFromClassProperty(ContainerInterface $container): void { | CODE |
| LOW | …ts/Drupal/FunctionalTests/Core/Recipe/RollbackTest.php | 52 | public function testRollbackForInvalidConfig(string $recipe_fixture, string $expected_invalid_config_name): void { | CODE |
| LOW | …unctionalTests/Bootstrap/LegacyFrontControllerTest.php | 51 | public function testSuccessfulFrontControllerRequest() : void { | CODE |
| LOW | …al/FunctionalTests/Bootstrap/UncaughtExceptionTest.php | 110 | public function testUncaughtExceptionCustomExceptionHandler(): void { | CODE |
| LOW | …al/FunctionalTests/Bootstrap/UncaughtExceptionTest.php | 187 | public function testLostDatabaseConnection(): void { | CODE |
| LOW | …tionalTests/Test/FunctionalTestDebugHtmlOutputTest.php | 32 | public function testFunctionalTestDebugHtmlOutput(): void { | CODE |
| LOW | …tionalTests/Test/FunctionalTestDebugHtmlOutputTest.php | 179 | private function getAlteredPhpunitXmlConfigurationFile(array|string $search, array|string $replace): string { | CODE |
| LOW | …Tests/Test/FunctionalTestDebugHtmlOutputHelperTest.php | 28 | public function testCreateFunctionalTestDebugHtmlOutput(): void { | CODE |
| LOW | …upal/FunctionalTests/Update/UpdatePathTestBaseTest.php | 38 | public function testDatabaseProperlyLoaded(): void { | CODE |
| LOW | …ctionalTests/Update/UpdateReducedThemeRegistryTest.php | 32 | public function testUpdatePageWithBrokenThemeHook(): void { | CODE |
| LOW | …upal/FunctionalTests/Entity/RevisionRevertFormTest.php | 116 | protected function testAccessRevertLatestDefault(): void { | CODE |
| LOW | …upal/FunctionalTests/Entity/RevisionRevertFormTest.php | 135 | protected function testAccessRevertLatestForwardRevision(): void { | CODE |
| LOW | …upal/FunctionalTests/Entity/RevisionRevertFormTest.php | 159 | protected function testAccessRevertNonLatest(): void { | CODE |
| LOW | …ests/Entity/RevisionVersionHistoryTranslatableTest.php | 53 | public function testVersionHistoryTranslations(): void { | CODE |
| LOW | …upal/FunctionalTests/Entity/DeleteMultipleFormTest.php | 125 | public function testUntranslatableEntities(): void { | CODE |
| LOW | …ormCorrectUserInputMappingOnFieldDeltaElementsTest.php | 83 | public function testCorrectUserInputMappingOnComplexFields(): void { | CODE |
| LOW | …upal/FunctionalTests/Entity/RevisionDeleteFormTest.php | 113 | public function testAccessDeleteLatestDefault(): void { | CODE |
| LOW | …upal/FunctionalTests/Entity/RevisionDeleteFormTest.php | 140 | protected function testAccessDeleteLatestForwardRevision(): void { | CODE |
| LOW | …upal/FunctionalTests/Entity/RevisionDeleteFormTest.php | 201 | protected function testAccessDeleteNonLatest(): void { | CODE |
| LOW | …tity/ContentEntityFormFieldValidationFilteringTest.php | 135 | public function testFieldWidgetsWithLimitedValidationErrors(): void { | CODE |
| LOW | …/Drupal/FunctionalTests/Image/ToolkitSetupFormTest.php | 84 | public function testGdToolkitRequirements(): void { | CODE |
| LOW | …l/FunctionalTests/DefaultContent/ContentImportTest.php | 140 | public function testDirectContentImportWithDifferentUser(): void { | CODE |
| LOW | …l/FunctionalTests/DefaultContent/ContentImportTest.php | 157 | public function testEntityValidationIsTriggered(): void { | CODE |
| LOW | …l/FunctionalTests/DefaultContent/ContentExportTest.php | 164 | public function testEntityExportScenarios(): void { | CODE |
| LOW | …l/FunctionalTests/DefaultContent/ContentExportTest.php | 177 | protected function doTestExportedPasswordIsPreserved(): void { | CODE |
| LOW | …l/FunctionalTests/DefaultContent/ContentExportTest.php | 213 | protected function doTestExportSingleEntityToDirectory(): void { | CODE |
| LOW | …l/FunctionalTests/DefaultContent/ContentExportTest.php | 234 | protected function doTestExportWithDependencies(): void { | CODE |
| LOW | …l/FunctionalTests/DefaultContent/ContentExportTest.php | 320 | protected function doTestMissingDependenciesAreLogged(): void { | CODE |
| LOW | …l/FunctionalTests/DefaultContent/ContentExportTest.php | 367 | protected function doTestExportFileEntityWithMissingPhysicalFile(): void { | CODE |
| LOW | …l/FunctionalTests/DefaultContent/ContentExportTest.php | 398 | protected function doTestExportEntitiesFilteredByType(): void { | CODE |
| LOW | …l/FunctionalTests/DefaultContent/ContentExportTest.php | 434 | public function testExportEntitiesFilteredByBundle(): void { | CODE |
| LOW | …ests/DefaultContent/ContentImportAlreadyExistsTest.php | 86 | public static function providerImportEntityThatAlreadyExists(): array { | CODE |
| LOW | …ests/DefaultContent/ContentImportAlreadyExistsTest.php | 97 | public function testImportEntityThatAlreadyExists(Existing $existing): void { | CODE |
| LOW | core/tests/Drupal/FunctionalTests/Theme/AdminTest.php | 37 | public function testRegressionMissingElementsCss(): void { | CODE |
| LOW | …l/FunctionalTests/Routing/RouteCachingLanguageTest.php | 133 | public function testLinkTranslationWithAlias(string $source_langcode): void { | CODE |
| LOW | …s/Drupal/FunctionalTests/Routing/DefaultFormatTest.php | 44 | public function testMultipleRoutesWithSameSingleFormat(): void { | CODE |
| LOW | …nctionalTests/Routing/RouteCachingQueryAlteredTest.php | 52 | public function testRouteCollectionCacheAfterException(): void { | CODE |
| LOW | …sts/Drupal/FunctionalTests/Routing/SystemFilesTest.php | 46 | public function testExtensionStreamWrappers(): void { | CODE |
| LOW | …rupal/FunctionalTests/Breadcrumb/Breadcrumb404Test.php | 56 | protected function getBreadcrumbCacheEntries() { | CODE |
| LOW | …FunctionalTests/Installer/InstallerPostInstallTest.php | 30 | public function testVisitInstallerPostInstall(): void { | CODE |
| LOW | …nalTests/Installer/ProfileAutoUninstallFailureTest.php | 43 | public function testAutomaticUninstallFailure(): void { | CODE |
| LOW | …/InstallerNonEnglishProfileWithoutLocaleModuleTest.php | 66 | public function testNonEnglishProfileWithoutLocaleModule(): void { | CODE |
| LOW | …alTests/Installer/InstallerProfileRequirementsTest.php | 53 | public function testHookRequirementsFailure(): void { | CODE |
| LOW | …Installer/InstallerTranslationMultipleLanguageTest.php | 175 | protected function verifyImportedStringsTranslated(): void { | CODE |
| LOW | …Installer/InstallerTranslationMultipleLanguageTest.php | 195 | protected function verifyConfigLanguageAssumptions(): void { | CODE |
| LOW | …allerTranslationMultipleLanguageNonInteractiveTest.php | 137 | protected function verifyImportedStringsTranslated(): void { | CODE |
| LOW | …Tests/Installer/InstallerDatabaseErrorMessagesTest.php | 55 | public function testSetUpSettingsErrorMessage(): void { | CODE |
| 6720 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/misc/drupal.js | 268 | * `{@link Drupal.theme}('placeholder')`). | COMMENT |
| LOW | core/misc/drupal.js | 293 | processedArgs[key] = Drupal.theme('placeholder', args[key]); | CODE |
| LOW | core/misc/drupal.js | 593 | * Drupal.theme('placeholder', text); | COMMENT |
| LOW | core/misc/drupal.js | 626 | return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`; | CODE |
| LOW | …al/FunctionalTests/Bootstrap/UncaughtExceptionTest.php | 98 | $message = '@<em class="placeholder">TypeError</em>: Drupal\\\error_test\\\Controller\\\ErrorTestController::{closur | CODE |
| LOW | …upal/FunctionalTests/Entity/RevisionRevertFormTest.php | 352 | $this->assertEquals('Copy of the revision from <em class="placeholder">Sun, 11 Jan 2009 - 17:00</em>.', $latestRevis | CODE |
| LOW | …FunctionalTests/Installer/InstallerTranslationTest.php | 75 | $this->assertSession()->responseContains('<strong>CREATE</strong> ein Test-Tabelle auf Ihrem Datenbankserver mit dem | CODE |
| LOW | …sts/Installer/InstallerSkipPermissionHardeningTest.php | 38 | $this->assertSession()->responseContains('All necessary changes to <em class="placeholder">' . $this->siteDirectory | CODE |
| LOW | …Drupal/FunctionalTests/Installer/InstallerTestBase.php | 106 | 'mail' => 'admin@example.com', | CODE |
| LOW | …tionalTests/Rest/EntityFormDisplayResourceTestBase.php | 90 | 'placeholder' => '', | CODE |
| LOW | …tionalTests/Rest/EntityFormDisplayResourceTestBase.php | 101 | 'placeholder' => '', | CODE |
| LOW | core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php | 502 | 'The submitted value <em class="placeholder">baz</em> in the <em class="placeholder">Test</em> element is not al | CODE |
| LOW | core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php | 515 | 'The submitted value <em class="placeholder">0</em> in the <em class="placeholder">Test</em> element is not allo | CODE |
| LOW | core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php | 528 | 'The submitted value <em class="placeholder">baz</em> in the <em class="placeholder">Test</em> element is not al | CODE |
| LOW | core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php | 537 | 'Test cannot be longer than <em class="placeholder">7</em> characters but is currently <em class="placeholder">8 | CODE |
| LOW | core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php | 550 | 'The submitted value type <em class="placeholder">array</em> in the <em class="placeholder">Test</em> element is | CODE |
| LOW⚡ | …/Tests/Core/Entity/Controller/EntityControllerTest.php | 33 | #[TestWith(['deleteTitle', 'example', 'Delete <em class="placeholder">example</em>'])] | COMMENT |
| LOW⚡ | …/Tests/Core/Entity/Controller/EntityControllerTest.php | 35 | #[TestWith(['editTitle', 'example', 'Edit <em class="placeholder">example</em>'])] | COMMENT |
| LOW | core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php | 192 | $this->mailManager->mail('example', 'key', 'to@example.org', 'en'); | CODE |
| LOW | core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php | 222 | 'from' => 'from@example.org', | CODE |
| LOW⚡ | …sts/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php | 107 | 'to' => 'to@example.org', | CODE |
| LOW⚡ | …sts/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php | 108 | 'from' => 'from@example.org', | CODE |
| LOW⚡ | …sts/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php | 109 | 'reply-to' => 'from@example.org', | CODE |
| LOW | …sts/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php | 121 | 'Reply-to' => 'from@example.org', | CODE |
| LOW | …sts/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php | 122 | 'Return-Path' => 'from@example.org', | CODE |
| LOW | …sts/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php | 143 | $this->equalTo('to@example.org'), | CODE |
| LOW | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 106 | 'Reply-to' => 'from@example.org', | CODE |
| LOW | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 107 | 'Return-Path' => 'from@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 166 | 'from' => 'from@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 167 | 'reply-to' => 'from@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 168 | 'to' => 'to@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 173 | 'reply-to' => 'from@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 174 | 'to' => 'to@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 180 | 'from' => 'from@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 181 | 'reply-to' => 'from@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 182 | 'to' => 'to@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 187 | 'reply-to' => 'from@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 188 | 'to' => 'to@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 194 | 'from' => 'from@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 195 | 'reply-to' => 'from@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 196 | 'to' => 'foo@example.org,bar@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 201 | 'reply-to' => 'from@example.org', | CODE |
| LOW⚡ | …upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php | 202 | 'to' => 'foo@example.org, bar@example.org', | CODE |
| LOW⚡ | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 545 | $test_element['placeholder']['#cache']['keys'] = ['placeholder', 'output', 'can', 'be', 'render', 'cached', 'too']; | CODE |
| LOW⚡ | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 546 | $test_element['placeholder']['#cache']['contexts'] = []; | CODE |
| LOW⚡ | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 547 | $test_element['placeholder']['#create_placeholder'] = TRUE; | CODE |
| LOW⚡ | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 548 | $test_element['placeholder']['#lazy_builder'] = ['Drupal\Tests\Core\Render\PlaceholdersTest::callback', $args]; | CODE |
| LOW⚡ | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 640 | $has_uncacheable_lazy_builder = !isset($test_element['placeholder']['#cache']['keys']) && isset($test_element['place | CODE |
| LOW⚡ | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 646 | $edge_case_a6_uncacheable = $has_uncacheable_lazy_builder && $test_element['placeholder']['#lazy_builder'][0] === 'D | CODE |
| LOW⚡ | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 648 | $edge_case_a7_uncacheable = $has_uncacheable_lazy_builder && $test_element['placeholder']['#lazy_builder'][0] === 'D | CODE |
| LOW | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 100 | 'placeholder' => [ | CODE |
| LOW | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 116 | 'placeholder' => [ | CODE |
| LOW | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 132 | 'placeholder' => [ | CODE |
| LOW | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 147 | 'placeholder' => [ | CODE |
| LOW | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 168 | 'placeholder' => [ | CODE |
| LOW | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 184 | 'placeholder' => [ | CODE |
| LOW | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 207 | $keys = ['placeholder', 'output', 'can', 'be', 'render', 'cached', 'too']; | CODE |
| LOW | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 216 | $expected_placeholder_render_array = $extract_placeholder_render_array($base_element_a1['placeholder']); | CODE |
| LOW | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 232 | $element_with_cache_keys['placeholder']['#cache']['keys'] = $keys; | CODE |
| LOW | …/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 260 | $expected_placeholder_render_array = $extract_placeholder_render_array($base_element_a2['placeholder']); | CODE |
| 364 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .gitlab-ci.yml | 1 | # cspell:ignore codequality Micheh micheh webide testdox updatedb stylelintrc fastzip phpcscache Ksection drupaltestbot | COMMENT |
| LOW | .gitlab-ci.yml | 21 | # * On commit | COMMENT |
| LOW | .gitlab-ci.yml | 41 | # Run when called from a parent pipeline | COMMENT |
| LOW | robots.txt | 1 | # | COMMENT |
| LOW | core/.deprecation-ignore.txt | 1 | # This file contains patterns to be ignored while testing for use of | COMMENT |
| LOW | core/core.services.yml | 981 | class: Drupal\Core\Controller\TitleResolver | COMMENT |
| LOW | core/misc/ajax.js | 581 | } | COMMENT |
| LOW | core/misc/ajax.js | 881 | // form submission mechanism, but captures the response in a hidden IFRAME. | COMMENT |
| LOW | …ormCorrectUserInputMappingOnFieldDeltaElementsTest.php | 101 | "$this->fieldName[1][_weight]" => -1, | COMMENT |
| LOW | …sts/Composer/Template/ComposerProjectTemplatesTest.php | 261 | // CI environment always forces composer commands to run in the | COMMENT |
| LOW | core/tests/Drupal/Tests/RequirementsPageTrait.php | 101 | } | COMMENT |
| LOW | core/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php | 361 | /** | COMMENT |
| LOW | …ests/Core/Cache/BackendChainImplementationUnitTest.php | 61 | COMMENT | |
| LOW | …e/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php | 241 | COMMENT | |
| LOW | core/tests/Drupal/Tests/Core/Batch/PercentagesTest.php | 41 | // Set up an array of test cases. | COMMENT |
| LOW | core/tests/Drupal/Tests/Core/Batch/PercentagesTest.php | 61 | [200, 1, '0.5'], | COMMENT |
| LOW | …ser/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php | 121 | // vendor directory, so that the installed plugin keeps the old code | COMMENT |
| LOW | …ent/Annotation/Doctrine/StaticReflectionParserTest.php | 21 | #[TestWith(["AttributeClass", "Attribute", true])] | COMMENT |
| LOW | …rupal/KernelTests/Core/Config/SchemaCheckTraitTest.php | 121 | COMMENT | |
| LOW | …pal/KernelTests/Core/Entity/ContentEntityCacheTest.php | 161 | // from the persistent entity cache. This simulates e.g. a behavior where | COMMENT |
| LOW | …pal/KernelTests/Core/Entity/ContentEntityCloneTest.php | 341 | } | COMMENT |
| LOW | …sts/Drupal/KernelTests/Core/Entity/EntityQueryTest.php | 561 | // 12 NULL tr | COMMENT |
| LOW | …s/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php | 221 | // =============== | COMMENT |
| LOW | …sts/Core/Session/AccessPolicyProcessorInFibersTest.php | 41 | COMMENT | |
| LOW | …tests/Drupal/KernelTests/Config/Schema/MappingTest.php | 301 | ], | COMMENT |
| LOW | core/recipes/example/recipe.yml | 1 | # The name of the recipe. | COMMENT |
| LOW | core/scripts/dev/commit-code-check.sh | 1 | #!/bin/bash | COMMENT |
| LOW | core/scripts/dev/commit-code-check.sh | 101 | COMMENT | |
| LOW | core/scripts/dev/commit-code-check.sh | 121 | # This variable will be set to one when the twig-cs-fixer config file is | COMMENT |
| LOW | core/lib/Drupal/Core/DrupalKernel.php | 641 | 'app' => [], | COMMENT |
| LOW | core/lib/Drupal/Core/DrupalKernel.php | 1521 | // default language can be configured using the configuration factory. This | COMMENT |
| LOW | core/lib/Drupal/Core/Database/ReplicaKillSwitch.php | 81 | // | COMMENT |
| LOW | …l/Core/Database/Transaction/TransactionManagerBase.php | 341 | // If the $id does not correspond to the one in the stack for that $name, | COMMENT |
| LOW | core/lib/Drupal/Core/Database/Install/Tasks.php | 221 | COMMENT | |
| LOW | core/lib/Drupal/Core/Form/FormValidator.php | 361 | */ | COMMENT |
| LOW | core/lib/Drupal/Core/Form/FormState.php | 1261 | foreach ($this->getCleanValueKeys() as $value) { | COMMENT |
| LOW | core/lib/Drupal/Core/Form/FormState.php | 1281 | // 'baz' => 'button_value', | COMMENT |
| LOW | core/lib/Drupal/Core/Form/FormBuilder.php | 281 | COMMENT | |
| LOW | core/lib/Drupal/Core/Form/FormBuilder.php | 301 | } | COMMENT |
| LOW | core/lib/Drupal/Core/Form/FormBuilder.php | 341 | // - If this submission is part of a multistep workflow, the form is rebuilt | COMMENT |
| LOW | core/lib/Drupal/Core/Form/FormBuilder.php | 361 | // then passed through | COMMENT |
| LOW | core/lib/Drupal/Core/Form/FormBuilder.php | 401 | // submissions. If the form receives its input via GET, then persisting | COMMENT |
| LOW | core/lib/Drupal/Core/Form/FormBuilder.php | 601 | // self::doBuildForm() finishes building the form by calling element | COMMENT |
| LOW | core/lib/Drupal/Core/Form/FormBuilder.php | 641 | // processed without validation errors, we are in a multi-step workflow | COMMENT |
| LOW | core/lib/Drupal/Core/Form/FormBuilder.php | 761 | '#id' => $form['#build_id'], | COMMENT |
| LOW | core/lib/Drupal/Core/Form/FormBuilder.php | 1241 | // To make it easier to handle files, we place all | COMMENT |
| LOW | core/lib/Drupal/Core/Form/FormBuilder.php | 1261 | // using #disabled. However, developers should think carefully about the | COMMENT |
| LOW | core/lib/Drupal/Core/Form/FormBuilder.php | 1301 | // to be explicitly distinguished from missing input. (see below) | COMMENT |
| LOW | core/lib/Drupal/Core/Extension/ModuleWeight.php | 61 | * | COMMENT |
| LOW | core/lib/Drupal/Core/Extension/ModuleInstaller.php | 481 | // @todo This code fixes \Drupal\Tests\help\Functional\HelpTest::testHelp(). | COMMENT |
| LOW | core/lib/Drupal/Core/Extension/ExtensionDiscovery.php | 161 | COMMENT | |
| LOW | core/lib/Drupal/Core/Extension/ExtensionDiscovery.php | 421 | // symlinks (to allow extensions to be linked from elsewhere), and return | COMMENT |
| LOW | core/lib/Drupal/Core/Extension/ModuleHandler.php | 481 | // so core implementations are not filtered out. 'Core' is added last to | COMMENT |
| LOW | core/lib/Drupal/Core/Extension/module.api.php | 381 | * @see install_tasks() | COMMENT |
| LOW | core/lib/Drupal/Core/Extension/module.api.php | 401 | ], | COMMENT |
| LOW | core/lib/Drupal/Core/Extension/module.api.php | 421 | 'display_name' => t('Import additional data'), | COMMENT |
| LOW | core/lib/Drupal/Core/Cache/DatabaseBackend.php | 121 | } | COMMENT |
| LOW | core/lib/Drupal/Core/Cache/ChainedFastBackend.php | 121 | // from there. | COMMENT |
| LOW | core/lib/Drupal/Core/Cache/ChainedFastBackend.php | 141 | $compare = round(microtime(TRUE), 3); | COMMENT |
| LOW | core/lib/Drupal/Core/Cache/ChainedFastBackend.php | 201 | /** | COMMENT |
| 191 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …sts/Composer/Template/ComposerProjectTemplatesTest.php | 271 | // Verify that there is an autoloader. This is written by the scaffold | COMMENT |
| MEDIUM | …/Composer/Plugin/Scaffold/Integration/AppendOpTest.php | 58 | // Assert the target contained the contents from the correct scaffold files. | COMMENT |
| MEDIUM | …Composer/Plugin/Scaffold/Integration/ReplaceOpTest.php | 36 | // Assert the target contained the contents from the correct scaffold file. | COMMENT |
| MEDIUM | …Composer/Plugin/Scaffold/Integration/ReplaceOpTest.php | 54 | // Assert the target contained the contents from the correct scaffold file. | COMMENT |
| MEDIUM | …Composer/Plugin/Scaffold/Integration/ReplaceOpTest.php | 94 | // Assert the target contained the contents from the correct scaffold file. | COMMENT |
| MEDIUM | …s/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php | 121 | // Test drupal:scaffold. | COMMENT |
| MEDIUM | …s/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php | 179 | // Test scaffold. Expect an error. | COMMENT |
| MEDIUM | …s/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php | 385 | // top-level composer.json excludes it from the files to scaffold. | COMMENT |
| MEDIUM | …s/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php | 404 | // Assert scaffold files are written in the correct locations. | COMMENT |
| MEDIUM | …ser/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php | 112 | // Run the scaffold command. | COMMENT |
| MEDIUM | …ser/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php | 153 | // Run the scaffold command. | COMMENT |
| MEDIUM | …ser/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php | 173 | // Run the scaffold command. | COMMENT |
| MEDIUM | …ser/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php | 219 | // Run the scaffold command. | COMMENT |
| MEDIUM⚡ | …mposer/Plugin/Scaffold/Functional/ComposerHookTest.php | 85 | // since there is no lock file. Ensure that scaffold operation ran. | COMMENT |
| MEDIUM⚡ | …mposer/Plugin/Scaffold/Functional/ComposerHookTest.php | 88 | // Run composer required to add in the scaffold-override-fixture. This | COMMENT |
| MEDIUM⚡ | …mposer/Plugin/Scaffold/Functional/ComposerHookTest.php | 90 | // We expect that requiring this library should re-scaffold, resulting | COMMENT |
| MEDIUM⚡ | …mposer/Plugin/Scaffold/Functional/ComposerHookTest.php | 97 | // Delete one scaffold file, just for test purposes, then run | COMMENT |
| MEDIUM⚡ | …mposer/Plugin/Scaffold/Functional/ComposerHookTest.php | 98 | // 'composer update' and see if the scaffold file is replaced. | COMMENT |
| MEDIUM⚡ | …mposer/Plugin/Scaffold/Functional/ComposerHookTest.php | 103 | // Delete the same test scaffold file again, then run | COMMENT |
| MEDIUM⚡ | …mposer/Plugin/Scaffold/Functional/ComposerHookTest.php | 104 | // 'composer drupal:scaffold' and see if the scaffold file is | COMMENT |
| MEDIUM⚡ | …mposer/Plugin/Scaffold/Functional/ComposerHookTest.php | 110 | // Delete the same test scaffold file yet again, then run | COMMENT |
| MEDIUM⚡ | …mposer/Plugin/Scaffold/Functional/ComposerHookTest.php | 111 | // 'composer install' and see if the scaffold file is re-scaffolded. | COMMENT |
| MEDIUM⚡ | …mposer/Plugin/Scaffold/Functional/ComposerHookTest.php | 134 | // since there is no lock file. Ensure that scaffold operation ran. | COMMENT |
| MEDIUM⚡ | …mposer/Plugin/Scaffold/Functional/ComposerHookTest.php | 140 | // Run scaffold operation again. It should not print anything. | COMMENT |
| MEDIUM⚡ | …mposer/Plugin/Scaffold/Functional/ComposerHookTest.php | 145 | // Delete a file and run it again. It should re-scaffold the removed file. | COMMENT |
| MEDIUM | …ser/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php | 71 | // First step: set up the Scaffold plug in. Ensure that scaffold operation | COMMENT |
| MEDIUM | …ser/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php | 76 | // Next, bring back packagist.org and install core-composer-scaffold:8.8.0. | COMMENT |
| MEDIUM | …ser/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php | 101 | // Remove a scaffold file and run the scaffold command again to prove that | COMMENT |
| MEDIUM | core/scripts/PackageManagerFixtureCreator.php | 36 | // Copy drupal scaffold file mapping from core/composer.json to | COMMENT |
| MEDIUM | core/lib/Drupal/Core/Session/SessionConfiguration.php | 31 | // @see core/assets/scaffold/files/default.services.yml | COMMENT |
| MEDIUM | …ge_manager/tests/src/Build/TemplateProjectTestBase.php | 505 | // scaffold files, like Drupal core. | COMMENT |
| MEDIUM | …age_manager/tests/src/Kernel/ComposerInspectorTest.php | 505 | // The scaffold and runtime plugins are explicitly disallowed by the | COMMENT |
| MEDIUM | …/Kernel/PathExcluder/SiteConfigurationExcluderTest.php | 107 | // to ensure the scaffold plugin can copy certain files into there. | COMMENT |
| MEDIUM | …ckage_manager/src/PathExcluder/UnknownPathExcluder.php | 97 | // operations, along with `composer.json`, `composer.lock`, and any scaffold | COMMENT |
| MEDIUM | …ckage_manager/src/PathExcluder/UnknownPathExcluder.php | 107 | // to do anything special for scaffold files that live in it. | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/ComposerScaffoldCommand.php | 41 | For more information, see https://www.drupal.org/docs/develop/using-composer/using-drupals-composer-scaffold. | CODE |
| MEDIUM | composer/Plugin/Scaffold/ScaffoldFilePath.php | 132 | // Calculate the full path to the source scaffold file. | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/Handler.php | 136 | // may declare scaffold files. Note that the top-level composer.json file | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/Handler.php | 144 | // Call any pre-scaffold scripts that may be defined. | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/Handler.php | 159 | // Get the scaffold files whose contents on disk match what we are about to | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/Handler.php | 181 | // Add the managed scaffold files to .gitignore if applicable. | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/Handler.php | 185 | // Call post-scaffold scripts. | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/Handler.php | 233 | // Warn the user if they allow a package that does not have any scaffold | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/Handler.php | 235 | // but might not have scaffold files (version 8.7.x and earlier). | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/README.md | 21 | [drupal-composer/drupal-project](https://github.com/drupal-composer/drupal-scaffold) | CODE |
| MEDIUM | composer/Plugin/Scaffold/README.md | 38 | files. See [altering scaffold files](#altering-scaffold-files) for more | CODE |
| MEDIUM | composer/Plugin/Scaffold/README.md | 192 | scaffold files](#altering-scaffold-files), above. Excluding a file means that | CODE |
| MEDIUM | composer/Plugin/Scaffold/README.md | 500 | ### drupal-composer/drupal-scaffold | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/AllowedPackages.php | 100 | // which of the newly-installed packages have scaffold operations, and | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/AllowedPackages.php | 101 | // whether or not they are allowed to scaffold by the allowed-packages | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/Operations/AppendOp.php | 120 | // Be extra-noisy of creating a new file or appending to a non-scaffold | COMMENT |
| MEDIUM | composer/Plugin/Scaffold/Operations/AppendOp.php | 162 | // If there is no existing scaffold file at the target location, then any | COMMENT |
| MEDIUM | …/Plugin/Scaffold/Operations/ScaffoldFileCollection.php | 41 | // when two projects scaffold the same file and we have to either replace or | COMMENT |
| MEDIUM | …/Plugin/Scaffold/Operations/ScaffoldFileCollection.php | 63 | // path, notify the scaffold operation of this fact. | COMMENT |
| MEDIUM | …/Plugin/Scaffold/Operations/ScaffoldFileCollection.php | 68 | // Combine the scaffold operation with the destination and record it. | COMMENT |
| MEDIUM | composer/Template/README.txt | 66 | https://www.drupal.org/docs/develop/using-composer/using-drupals-composer-scaffold | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | core/lib/Drupal/Core/TypedData/TypedData.php | 178 | // Variables in double quotes used to leverage fast string concatenation. | COMMENT |
| MEDIUM | core/lib/Drupal/Core/Template/TwigEnvironment.php | 110 | // "serialization.yaml" service. This allows the core serializer to utilize | COMMENT |
| MEDIUM | core/lib/Drupal/Core/Template/TwigEnvironment.php | 173 | // "serialization.yaml" service. This allows the core serializer to utilize | COMMENT |
| MEDIUM | core/lib/Drupal/Core/Routing/RouteProvider.php | 317 | // the explicit cast makes this sort more robust against unexpected input. | COMMENT |
| MEDIUM | …config_translation/src/FormElement/FormElementBase.php | 58 | // other in the source for each element, which is why we utilize the | COMMENT |
| MEDIUM | core/modules/locale/src/LocaleProjectStorage.php | 212 | // check for possible out-of-date project information more robust. | COMMENT |
| MEDIUM | …dules/file/src/Plugin/Field/FieldWidget/FileWidget.php | 231 | // Essentially we use the managed_file type, extended with some | COMMENT |
| MEDIUM | core/modules/comment/src/CommentViewBuilder.php | 112 | // Pre-load associated users into cache to leverage multiple loading. | COMMENT |
| MEDIUM | …aint/SourceEditingRedundantTagsConstraintValidator.php | 114 | // Essentially when assessing a particular value (for example `<span>`), | COMMENT |
| MEDIUM | …odules/views/src/Entity/Render/EntityFieldRenderer.php | 140 | // leverage multiple-entity building of formatter output, we build the | COMMENT |
| MEDIUM | core/modules/help/src/HelpTopicTwigLoader.php | 77 | // utilize core related functionality which isn't available as the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …b/Drupal/Core/Plugin/Context/LazyContextRepository.php | 69 | // runtime contexts and assign them as requested. | COMMENT |
| HIGH⚡ | …ode/tests/src/Functional/NodeFieldMultilingualTest.php | 114 | // Verify that body is correctly displayed using Italian as requested | COMMENT |
| HIGH⚡ | …ode/tests/src/Functional/NodeFieldMultilingualTest.php | 119 | // Verify that body is correctly displayed using English as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | core/lib/Drupal/Core/Lock/LockBackendInterface.php | 25 | * name of the function performing the operation. Here is a simple example: | COMMENT |
| MEDIUM⚡ | …mo_umami/tests/src/Functional/DemoUmamiProfileTest.php | 289 | $web_assert->pageTextContains('This site is intended for demonstration purposes.'); | CODE |
| MEDIUM⚡ | …mo_umami/tests/src/Functional/DemoUmamiProfileTest.php | 294 | $web_assert->pageTextContains('This site is intended for demonstration purposes.'); | CODE |
| MEDIUM⚡ | …mo_umami/tests/src/Functional/DemoUmamiProfileTest.php | 299 | $web_assert->pageTextContains('This site is intended for demonstration purposes.'); | CODE |
| MEDIUM⚡ | …mo_umami/tests/src/Functional/DemoUmamiProfileTest.php | 304 | $web_assert->pageTextContains('This site is intended for demonstration purposes.'); | CODE |
| MEDIUM⚡ | …mo_umami/tests/src/Functional/DemoUmamiProfileTest.php | 309 | $web_assert->pageTextContains('This site is intended for demonstration purposes.'); | CODE |
| LOW | …article_body/give-it-a-go-and-grow-your-own-herbs.html | 15 | <p>Coriander can grow indoors, but unlike the other herbs, it doesn't like full sun. If you have a south facing kitchen | CODE |
| MEDIUM | core/profiles/demo_umami/src/Hook/DemoUmamiHooks.php | 135 | 'content' => (string) $this->t('This site is intended for demonstration purposes.'), | CODE |
| LOW | …e/modules/system/src/Controller/DbUpdateController.php | 470 | $message .= '<p>' . $this->t("<strong>Reminder: don't forget to set the <code>\$settings['update_free_access']</co | CODE |
| MEDIUM | …dules/views/src/Plugin/views/argument/NullArgument.php | 36 | '#description' => $this->t('By checking this field, you can use this to make sure views with more arguments than n | CODE |
| LOW | …e/modules/views/src/Plugin/views/field/EntityField.php | 572 | '#description' => $this->t('If checked, multiple values for this field will be shown in the same row. If not check | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | core/modules/ckeditor5/js/ckeditor5.js | 402 | editor.ui.view.editable.element.append(element); | CODE |
| CRITICAL | …keditor5_plugins/drupalMedia/src/drupalmediaediting.js | 220 | this.editor.editing.view.domConverter.blockElements.push('drupal-media'); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | core/lib/Drupal/Core/Command/GenerateTheme.php | 167 | // Step 1: Replace old patterns with placeholders in content. | COMMENT |
| LOW⚡ | core/lib/Drupal/Core/Command/GenerateTheme.php | 169 | // Step 2: Replace placeholders with new patterns in content. | COMMENT |
| LOW | core/lib/Drupal/Core/Command/GenerateTheme.php | 191 | // Step 3: Repeat for file renaming. | COMMENT |
| LOW | core/modules/file/src/Element/ManagedFile.php | 253 | // Set up the buttons first since we need to check if they were clicked. | COMMENT |
| LOW | core/modules/mysql/src/Driver/Database/mysql/Schema.php | 700 | // information_schema.columns so we need to check if the table exists. | COMMENT |
| LOW⚡ | …ia/tests/src/Functional/Rest/MediaResourceTestBase.php | 332 | // Step 1: upload file, results in File entity marked temporary. | COMMENT |
| LOW⚡ | …ia/tests/src/Functional/Rest/MediaResourceTestBase.php | 338 | // Step 2: create Media entity using the File, makes File entity permanent. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | core/lib/Drupal/Core/Command/GenerateTheme.php | 167 | // Step 1: Replace old patterns with placeholders in content. | COMMENT |
| LOW⚡ | core/lib/Drupal/Core/Command/GenerateTheme.php | 169 | // Step 2: Replace placeholders with new patterns in content. | COMMENT |
| LOW | core/lib/Drupal/Core/Command/GenerateTheme.php | 191 | // Step 3: Repeat for file renaming. | COMMENT |
| LOW | …s/node/tests/src/Functional/Views/NodeLanguageTest.php | 244 | // IMPORTANT: Make sure this part of the test is last -- it is changing | COMMENT |
| LOW⚡ | …ia/tests/src/Functional/Rest/MediaResourceTestBase.php | 332 | // Step 1: upload file, results in File entity marked temporary. | COMMENT |
| LOW⚡ | …ia/tests/src/Functional/Rest/MediaResourceTestBase.php | 338 | // Step 2: create Media entity using the File, makes File entity permanent. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | core/core.libraries.yml | 11 | # This file is not aggregated to force the creation of a new aggregate file | COMMENT |
| MEDIUM | …themes/sdc_theme_test/components/bar/bar.component.yml | 1 | # This file is intentionally left empty | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …migrate/src/Plugin/migrate/process/SkipRowIfNotSet.php | 28 | * # Check if the "contact" key exists in the "data" array. | COMMENT |