AI Slop Code RIsk Monitor

drupal/drupal

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.

4.9 Low pattern signal View on GitHub

Maintenance and Governance Review

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.

4.9
Adjusted Signal
4.9
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
4.3K
Stars
PHP
Language
1.6M
Lines of Code
14.0K
Files
7.6K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 20.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 7128 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.5/100 · LOW

Are imports declared and package/API names verified? 426 finding(s).

Agent Over-Engineering Ratio 19.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 6780 finding(s).

PR Review Velocity Impact 21.2/100 · LOW

Which changes need focused human review? 7554 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 2HIGH 3MEDIUM 77LOW 7472

Directory Score Breakdown

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.

Pattern Findings

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.

Hyper-Verbose Identifiers6780 hits · 6848 pts
SeverityFileLineSnippetContext
LOW…pal/FunctionalTests/GetTestMethodCallerExtendsTest.php26 public function testGetTestMethodCallerChildClass(): void {CODE
LOW…e/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php273 public function testFieldAssertsForTextfields(): void {CODE
LOW…e/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php376 public function testFieldAssertsForCheckbox(): void {CODE
LOW…e/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php526 public function testGetDefaultDriveInstance(): void {CODE
LOW…e/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php614 public function testDeprecationTriggeredInSystemUnderTest(): void {CODE
LOW…e/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php659 public function testSimpleTestBaseUrlValidation(): void {CODE
LOW…FunctionalTests/HttpKernel/DestructableServiceTest.php32 public function testDestructableServiceExecutionOrder(): void {CODE
LOW…l/FunctionalTests/Core/Test/ModuleInstallBatchTest.php36 public function testLoadingEntitiesCreatedInBatch(): void {CODE
LOW…upal/FunctionalTests/Core/Recipe/RecipeCommandTest.php90 public function testIsApplyingDuringBatch(): void {CODE
LOW…upal/FunctionalTests/Core/Recipe/RecipeCommandTest.php132 public function testErrorOnNonExistentDirectory(): void {CODE
LOW…upal/FunctionalTests/Core/Recipe/RecipeCommandTest.php172 public function testConstantInRecipeAction(): void {CODE
LOW…upal/FunctionalTests/Core/Recipe/RecipeCommandTest.php185 public function testBrokenEnumInRecipeAction(): void {CODE
LOW…upal/FunctionalTests/Core/Recipe/RecipeCommandTest.php220 public function testDefaultInputValueFromConfig(): void {CODE
LOW…ctionalTests/Core/Recipe/StandardRecipeInstallTest.php109 protected function installDefaultThemeFromClassProperty(ContainerInterface $container): void {CODE
LOW…ts/Drupal/FunctionalTests/Core/Recipe/RollbackTest.php52 public function testRollbackForInvalidConfig(string $recipe_fixture, string $expected_invalid_config_name): void {CODE
LOW…unctionalTests/Bootstrap/LegacyFrontControllerTest.php51 public function testSuccessfulFrontControllerRequest() : void {CODE
LOW…al/FunctionalTests/Bootstrap/UncaughtExceptionTest.php110 public function testUncaughtExceptionCustomExceptionHandler(): void {CODE
LOW…al/FunctionalTests/Bootstrap/UncaughtExceptionTest.php187 public function testLostDatabaseConnection(): void {CODE
LOW…tionalTests/Test/FunctionalTestDebugHtmlOutputTest.php32 public function testFunctionalTestDebugHtmlOutput(): void {CODE
LOW…tionalTests/Test/FunctionalTestDebugHtmlOutputTest.php179 private function getAlteredPhpunitXmlConfigurationFile(array|string $search, array|string $replace): string {CODE
LOW…Tests/Test/FunctionalTestDebugHtmlOutputHelperTest.php28 public function testCreateFunctionalTestDebugHtmlOutput(): void {CODE
LOW…upal/FunctionalTests/Update/UpdatePathTestBaseTest.php38 public function testDatabaseProperlyLoaded(): void {CODE
LOW…ctionalTests/Update/UpdateReducedThemeRegistryTest.php32 public function testUpdatePageWithBrokenThemeHook(): void {CODE
LOW…upal/FunctionalTests/Entity/RevisionRevertFormTest.php116 protected function testAccessRevertLatestDefault(): void {CODE
LOW…upal/FunctionalTests/Entity/RevisionRevertFormTest.php135 protected function testAccessRevertLatestForwardRevision(): void {CODE
LOW…upal/FunctionalTests/Entity/RevisionRevertFormTest.php159 protected function testAccessRevertNonLatest(): void {CODE
LOW…ests/Entity/RevisionVersionHistoryTranslatableTest.php53 public function testVersionHistoryTranslations(): void {CODE
LOW…upal/FunctionalTests/Entity/DeleteMultipleFormTest.php125 public function testUntranslatableEntities(): void {CODE
LOW…ormCorrectUserInputMappingOnFieldDeltaElementsTest.php83 public function testCorrectUserInputMappingOnComplexFields(): void {CODE
LOW…upal/FunctionalTests/Entity/RevisionDeleteFormTest.php113 public function testAccessDeleteLatestDefault(): void {CODE
LOW…upal/FunctionalTests/Entity/RevisionDeleteFormTest.php140 protected function testAccessDeleteLatestForwardRevision(): void {CODE
LOW…upal/FunctionalTests/Entity/RevisionDeleteFormTest.php201 protected function testAccessDeleteNonLatest(): void {CODE
LOW…tity/ContentEntityFormFieldValidationFilteringTest.php135 public function testFieldWidgetsWithLimitedValidationErrors(): void {CODE
LOW…/Drupal/FunctionalTests/Image/ToolkitSetupFormTest.php84 public function testGdToolkitRequirements(): void {CODE
LOW…l/FunctionalTests/DefaultContent/ContentImportTest.php140 public function testDirectContentImportWithDifferentUser(): void {CODE
LOW…l/FunctionalTests/DefaultContent/ContentImportTest.php157 public function testEntityValidationIsTriggered(): void {CODE
LOW…l/FunctionalTests/DefaultContent/ContentExportTest.php164 public function testEntityExportScenarios(): void {CODE
LOW…l/FunctionalTests/DefaultContent/ContentExportTest.php177 protected function doTestExportedPasswordIsPreserved(): void {CODE
LOW…l/FunctionalTests/DefaultContent/ContentExportTest.php213 protected function doTestExportSingleEntityToDirectory(): void {CODE
LOW…l/FunctionalTests/DefaultContent/ContentExportTest.php234 protected function doTestExportWithDependencies(): void {CODE
LOW…l/FunctionalTests/DefaultContent/ContentExportTest.php320 protected function doTestMissingDependenciesAreLogged(): void {CODE
LOW…l/FunctionalTests/DefaultContent/ContentExportTest.php367 protected function doTestExportFileEntityWithMissingPhysicalFile(): void {CODE
LOW…l/FunctionalTests/DefaultContent/ContentExportTest.php398 protected function doTestExportEntitiesFilteredByType(): void {CODE
LOW…l/FunctionalTests/DefaultContent/ContentExportTest.php434 public function testExportEntitiesFilteredByBundle(): void {CODE
LOW…ests/DefaultContent/ContentImportAlreadyExistsTest.php86 public static function providerImportEntityThatAlreadyExists(): array {CODE
LOW…ests/DefaultContent/ContentImportAlreadyExistsTest.php97 public function testImportEntityThatAlreadyExists(Existing $existing): void {CODE
LOWcore/tests/Drupal/FunctionalTests/Theme/AdminTest.php37 public function testRegressionMissingElementsCss(): void {CODE
LOW…l/FunctionalTests/Routing/RouteCachingLanguageTest.php133 public function testLinkTranslationWithAlias(string $source_langcode): void {CODE
LOW…s/Drupal/FunctionalTests/Routing/DefaultFormatTest.php44 public function testMultipleRoutesWithSameSingleFormat(): void {CODE
LOW…nctionalTests/Routing/RouteCachingQueryAlteredTest.php52 public function testRouteCollectionCacheAfterException(): void {CODE
LOW…sts/Drupal/FunctionalTests/Routing/SystemFilesTest.php46 public function testExtensionStreamWrappers(): void {CODE
LOW…rupal/FunctionalTests/Breadcrumb/Breadcrumb404Test.php56 protected function getBreadcrumbCacheEntries() {CODE
LOW…FunctionalTests/Installer/InstallerPostInstallTest.php30 public function testVisitInstallerPostInstall(): void {CODE
LOW…nalTests/Installer/ProfileAutoUninstallFailureTest.php43 public function testAutomaticUninstallFailure(): void {CODE
LOW…/InstallerNonEnglishProfileWithoutLocaleModuleTest.php66 public function testNonEnglishProfileWithoutLocaleModule(): void {CODE
LOW…alTests/Installer/InstallerProfileRequirementsTest.php53 public function testHookRequirementsFailure(): void {CODE
LOW…Installer/InstallerTranslationMultipleLanguageTest.php175 protected function verifyImportedStringsTranslated(): void {CODE
LOW…Installer/InstallerTranslationMultipleLanguageTest.php195 protected function verifyConfigLanguageAssumptions(): void {CODE
LOW…allerTranslationMultipleLanguageNonInteractiveTest.php137 protected function verifyImportedStringsTranslated(): void {CODE
LOW…Tests/Installer/InstallerDatabaseErrorMessagesTest.php55 public function testSetUpSettingsErrorMessage(): void {CODE
6720 more matches not shown…
Fake / Example Data424 hits · 479 pts
SeverityFileLineSnippetContext
LOWcore/misc/drupal.js268 * `{@link Drupal.theme}('placeholder')`).COMMENT
LOWcore/misc/drupal.js293 processedArgs[key] = Drupal.theme('placeholder', args[key]);CODE
LOWcore/misc/drupal.js593 * Drupal.theme('placeholder', text);COMMENT
LOWcore/misc/drupal.js626 return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`;CODE
LOW…al/FunctionalTests/Bootstrap/UncaughtExceptionTest.php98 $message = '@<em class="placeholder">TypeError</em>: Drupal\\\error_test\\\Controller\\\ErrorTestController::{closurCODE
LOW…upal/FunctionalTests/Entity/RevisionRevertFormTest.php352 $this->assertEquals('Copy of the revision from <em class="placeholder">Sun, 11 Jan 2009 - 17:00</em>.', $latestRevisCODE
LOW…FunctionalTests/Installer/InstallerTranslationTest.php75 $this->assertSession()->responseContains('<strong>CREATE</strong> ein Test-Tabelle auf Ihrem Datenbankserver mit demCODE
LOW…sts/Installer/InstallerSkipPermissionHardeningTest.php38 $this->assertSession()->responseContains('All necessary changes to <em class="placeholder">' . $this->siteDirectory CODE
LOW…Drupal/FunctionalTests/Installer/InstallerTestBase.php106 'mail' => 'admin@example.com',CODE
LOW…tionalTests/Rest/EntityFormDisplayResourceTestBase.php90 'placeholder' => '',CODE
LOW…tionalTests/Rest/EntityFormDisplayResourceTestBase.php101 'placeholder' => '',CODE
LOWcore/tests/Drupal/Tests/Core/Form/FormValidatorTest.php502 'The submitted value <em class="placeholder">baz</em> in the <em class="placeholder">Test</em> element is not alCODE
LOWcore/tests/Drupal/Tests/Core/Form/FormValidatorTest.php515 'The submitted value <em class="placeholder">0</em> in the <em class="placeholder">Test</em> element is not alloCODE
LOWcore/tests/Drupal/Tests/Core/Form/FormValidatorTest.php528 'The submitted value <em class="placeholder">baz</em> in the <em class="placeholder">Test</em> element is not alCODE
LOWcore/tests/Drupal/Tests/Core/Form/FormValidatorTest.php537 'Test cannot be longer than <em class="placeholder">7</em> characters but is currently <em class="placeholder">8CODE
LOWcore/tests/Drupal/Tests/Core/Form/FormValidatorTest.php550 'The submitted value type <em class="placeholder">array</em> in the <em class="placeholder">Test</em> element isCODE
LOW⚡…/Tests/Core/Entity/Controller/EntityControllerTest.php33 #[TestWith(['deleteTitle', 'example', 'Delete <em class="placeholder">example</em>'])]COMMENT
LOW⚡…/Tests/Core/Entity/Controller/EntityControllerTest.php35 #[TestWith(['editTitle', 'example', 'Edit <em class="placeholder">example</em>'])]COMMENT
LOWcore/tests/Drupal/Tests/Core/Mail/MailManagerTest.php192 $this->mailManager->mail('example', 'key', 'to@example.org', 'en');CODE
LOWcore/tests/Drupal/Tests/Core/Mail/MailManagerTest.php222 'from' => 'from@example.org',CODE
LOW⚡…sts/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php107 'to' => 'to@example.org',CODE
LOW⚡…sts/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php108 'from' => 'from@example.org',CODE
LOW⚡…sts/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php109 'reply-to' => 'from@example.org',CODE
LOW…sts/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php121 'Reply-to' => 'from@example.org',CODE
LOW…sts/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php122 'Return-Path' => 'from@example.org',CODE
LOW…sts/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php143 $this->equalTo('to@example.org'),CODE
LOW…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php106 'Reply-to' => 'from@example.org',CODE
LOW…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php107 'Return-Path' => 'from@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php166 'from' => 'from@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php167 'reply-to' => 'from@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php168 'to' => 'to@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php173 'reply-to' => 'from@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php174 'to' => 'to@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php180 'from' => 'from@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php181 'reply-to' => 'from@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php182 'to' => 'to@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php187 'reply-to' => 'from@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php188 'to' => 'to@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php194 'from' => 'from@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php195 'reply-to' => 'from@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php196 'to' => 'foo@example.org,bar@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php201 'reply-to' => 'from@example.org',CODE
LOW⚡…upal/Tests/Core/Mail/Plugin/Mail/SymfonyMailerTest.php202 'to' => 'foo@example.org, bar@example.org',CODE
LOW⚡…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php545 $test_element['placeholder']['#cache']['keys'] = ['placeholder', 'output', 'can', 'be', 'render', 'cached', 'too'];CODE
LOW⚡…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php546 $test_element['placeholder']['#cache']['contexts'] = [];CODE
LOW⚡…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php547 $test_element['placeholder']['#create_placeholder'] = TRUE;CODE
LOW⚡…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php548 $test_element['placeholder']['#lazy_builder'] = ['Drupal\Tests\Core\Render\PlaceholdersTest::callback', $args];CODE
LOW⚡…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php640 $has_uncacheable_lazy_builder = !isset($test_element['placeholder']['#cache']['keys']) && isset($test_element['placeCODE
LOW⚡…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php646 $edge_case_a6_uncacheable = $has_uncacheable_lazy_builder && $test_element['placeholder']['#lazy_builder'][0] === 'DCODE
LOW⚡…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php648 $edge_case_a7_uncacheable = $has_uncacheable_lazy_builder && $test_element['placeholder']['#lazy_builder'][0] === 'DCODE
LOW…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php100 'placeholder' => [CODE
LOW…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php116 'placeholder' => [CODE
LOW…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php132 'placeholder' => [CODE
LOW…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php147 'placeholder' => [CODE
LOW…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php168 'placeholder' => [CODE
LOW…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php184 'placeholder' => [CODE
LOW…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php207 $keys = ['placeholder', 'output', 'can', 'be', 'render', 'cached', 'too'];CODE
LOW…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php216 $expected_placeholder_render_array = $extract_placeholder_render_array($base_element_a1['placeholder']);CODE
LOW…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php232 $element_with_cache_keys['placeholder']['#cache']['keys'] = $keys;CODE
LOW…/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php260 $expected_placeholder_render_array = $extract_placeholder_render_array($base_element_a2['placeholder']);CODE
364 more matches not shown…
Over-Commented Block251 hits · 250 pts
SeverityFileLineSnippetContext
LOW.gitlab-ci.yml1# cspell:ignore codequality Micheh micheh webide testdox updatedb stylelintrc fastzip phpcscache Ksection drupaltestbot COMMENT
LOW.gitlab-ci.yml21# * On commitCOMMENT
LOW.gitlab-ci.yml41 # Run when called from a parent pipelineCOMMENT
LOWrobots.txt1#COMMENT
LOWcore/.deprecation-ignore.txt1# This file contains patterns to be ignored while testing for use ofCOMMENT
LOWcore/core.services.yml981 class: Drupal\Core\Controller\TitleResolverCOMMENT
LOWcore/misc/ajax.js581 }COMMENT
LOWcore/misc/ajax.js881 // form submission mechanism, but captures the response in a hidden IFRAME.COMMENT
LOW…ormCorrectUserInputMappingOnFieldDeltaElementsTest.php101 "$this->fieldName[1][_weight]" => -1,COMMENT
LOW…sts/Composer/Template/ComposerProjectTemplatesTest.php261 // CI environment always forces composer commands to run in theCOMMENT
LOWcore/tests/Drupal/Tests/RequirementsPageTrait.php101 }COMMENT
LOWcore/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php361 /**COMMENT
LOW…ests/Core/Cache/BackendChainImplementationUnitTest.php61COMMENT
LOW…e/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php241COMMENT
LOWcore/tests/Drupal/Tests/Core/Batch/PercentagesTest.php41 // Set up an array of test cases.COMMENT
LOWcore/tests/Drupal/Tests/Core/Batch/PercentagesTest.php61 [200, 1, '0.5'],COMMENT
LOW…ser/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php121 // vendor directory, so that the installed plugin keeps the old codeCOMMENT
LOW…ent/Annotation/Doctrine/StaticReflectionParserTest.php21 #[TestWith(["AttributeClass", "Attribute", true])]COMMENT
LOW…rupal/KernelTests/Core/Config/SchemaCheckTraitTest.php121COMMENT
LOW…pal/KernelTests/Core/Entity/ContentEntityCacheTest.php161 // from the persistent entity cache. This simulates e.g. a behavior whereCOMMENT
LOW…pal/KernelTests/Core/Entity/ContentEntityCloneTest.php341 }COMMENT
LOW…sts/Drupal/KernelTests/Core/Entity/EntityQueryTest.php561 // 12 NULL trCOMMENT
LOW…s/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php221 // ===============COMMENT
LOW…sts/Core/Session/AccessPolicyProcessorInFibersTest.php41COMMENT
LOW…tests/Drupal/KernelTests/Config/Schema/MappingTest.php301 ],COMMENT
LOWcore/recipes/example/recipe.yml1# The name of the recipe.COMMENT
LOWcore/scripts/dev/commit-code-check.sh1#!/bin/bashCOMMENT
LOWcore/scripts/dev/commit-code-check.sh101COMMENT
LOWcore/scripts/dev/commit-code-check.sh121# This variable will be set to one when the twig-cs-fixer config file isCOMMENT
LOWcore/lib/Drupal/Core/DrupalKernel.php641 'app' => [],COMMENT
LOWcore/lib/Drupal/Core/DrupalKernel.php1521 // default language can be configured using the configuration factory. ThisCOMMENT
LOWcore/lib/Drupal/Core/Database/ReplicaKillSwitch.php81 //COMMENT
LOW…l/Core/Database/Transaction/TransactionManagerBase.php341 // If the $id does not correspond to the one in the stack for that $name,COMMENT
LOWcore/lib/Drupal/Core/Database/Install/Tasks.php221COMMENT
LOWcore/lib/Drupal/Core/Form/FormValidator.php361 */COMMENT
LOWcore/lib/Drupal/Core/Form/FormState.php1261 foreach ($this->getCleanValueKeys() as $value) {COMMENT
LOWcore/lib/Drupal/Core/Form/FormState.php1281 // 'baz' => 'button_value',COMMENT
LOWcore/lib/Drupal/Core/Form/FormBuilder.php281COMMENT
LOWcore/lib/Drupal/Core/Form/FormBuilder.php301 }COMMENT
LOWcore/lib/Drupal/Core/Form/FormBuilder.php341 // - If this submission is part of a multistep workflow, the form is rebuiltCOMMENT
LOWcore/lib/Drupal/Core/Form/FormBuilder.php361 // then passed throughCOMMENT
LOWcore/lib/Drupal/Core/Form/FormBuilder.php401 // submissions. If the form receives its input via GET, then persistingCOMMENT
LOWcore/lib/Drupal/Core/Form/FormBuilder.php601 // self::doBuildForm() finishes building the form by calling elementCOMMENT
LOWcore/lib/Drupal/Core/Form/FormBuilder.php641 // processed without validation errors, we are in a multi-step workflowCOMMENT
LOWcore/lib/Drupal/Core/Form/FormBuilder.php761 '#id' => $form['#build_id'],COMMENT
LOWcore/lib/Drupal/Core/Form/FormBuilder.php1241 // To make it easier to handle files, we place allCOMMENT
LOWcore/lib/Drupal/Core/Form/FormBuilder.php1261 // using #disabled. However, developers should think carefully about theCOMMENT
LOWcore/lib/Drupal/Core/Form/FormBuilder.php1301 // to be explicitly distinguished from missing input. (see below)COMMENT
LOWcore/lib/Drupal/Core/Extension/ModuleWeight.php61 *COMMENT
LOWcore/lib/Drupal/Core/Extension/ModuleInstaller.php481 // @todo This code fixes \Drupal\Tests\help\Functional\HelpTest::testHelp().COMMENT
LOWcore/lib/Drupal/Core/Extension/ExtensionDiscovery.php161COMMENT
LOWcore/lib/Drupal/Core/Extension/ExtensionDiscovery.php421 // symlinks (to allow extensions to be linked from elsewhere), and returnCOMMENT
LOWcore/lib/Drupal/Core/Extension/ModuleHandler.php481 // so core implementations are not filtered out. 'Core' is added last toCOMMENT
LOWcore/lib/Drupal/Core/Extension/module.api.php381 * @see install_tasks()COMMENT
LOWcore/lib/Drupal/Core/Extension/module.api.php401 ],COMMENT
LOWcore/lib/Drupal/Core/Extension/module.api.php421 'display_name' => t('Import additional data'),COMMENT
LOWcore/lib/Drupal/Core/Cache/DatabaseBackend.php121 }COMMENT
LOWcore/lib/Drupal/Core/Cache/ChainedFastBackend.php121 // from there.COMMENT
LOWcore/lib/Drupal/Core/Cache/ChainedFastBackend.php141 $compare = round(microtime(TRUE), 3);COMMENT
LOWcore/lib/Drupal/Core/Cache/ChainedFastBackend.php201 /**COMMENT
191 more matches not shown…
Modern AI Meta-Vocabulary56 hits · 181 pts
SeverityFileLineSnippetContext
MEDIUM…sts/Composer/Template/ComposerProjectTemplatesTest.php271 // Verify that there is an autoloader. This is written by the scaffoldCOMMENT
MEDIUM…/Composer/Plugin/Scaffold/Integration/AppendOpTest.php58 // Assert the target contained the contents from the correct scaffold files.COMMENT
MEDIUM…Composer/Plugin/Scaffold/Integration/ReplaceOpTest.php36 // Assert the target contained the contents from the correct scaffold file.COMMENT
MEDIUM…Composer/Plugin/Scaffold/Integration/ReplaceOpTest.php54 // Assert the target contained the contents from the correct scaffold file.COMMENT
MEDIUM…Composer/Plugin/Scaffold/Integration/ReplaceOpTest.php94 // Assert the target contained the contents from the correct scaffold file.COMMENT
MEDIUM…s/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php121 // Test drupal:scaffold.COMMENT
MEDIUM…s/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php179 // Test scaffold. Expect an error.COMMENT
MEDIUM…s/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php385 // top-level composer.json excludes it from the files to scaffold.COMMENT
MEDIUM…s/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php404 // Assert scaffold files are written in the correct locations.COMMENT
MEDIUM…ser/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php112 // Run the scaffold command.COMMENT
MEDIUM…ser/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php153 // Run the scaffold command.COMMENT
MEDIUM…ser/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php173 // Run the scaffold command.COMMENT
MEDIUM…ser/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php219 // Run the scaffold command.COMMENT
MEDIUM⚡…mposer/Plugin/Scaffold/Functional/ComposerHookTest.php85 // since there is no lock file. Ensure that scaffold operation ran.COMMENT
MEDIUM⚡…mposer/Plugin/Scaffold/Functional/ComposerHookTest.php88 // Run composer required to add in the scaffold-override-fixture. ThisCOMMENT
MEDIUM⚡…mposer/Plugin/Scaffold/Functional/ComposerHookTest.php90 // We expect that requiring this library should re-scaffold, resultingCOMMENT
MEDIUM⚡…mposer/Plugin/Scaffold/Functional/ComposerHookTest.php97 // Delete one scaffold file, just for test purposes, then runCOMMENT
MEDIUM⚡…mposer/Plugin/Scaffold/Functional/ComposerHookTest.php98 // 'composer update' and see if the scaffold file is replaced.COMMENT
MEDIUM⚡…mposer/Plugin/Scaffold/Functional/ComposerHookTest.php103 // Delete the same test scaffold file again, then runCOMMENT
MEDIUM⚡…mposer/Plugin/Scaffold/Functional/ComposerHookTest.php104 // 'composer drupal:scaffold' and see if the scaffold file isCOMMENT
MEDIUM⚡…mposer/Plugin/Scaffold/Functional/ComposerHookTest.php110 // Delete the same test scaffold file yet again, then runCOMMENT
MEDIUM⚡…mposer/Plugin/Scaffold/Functional/ComposerHookTest.php111 // 'composer install' and see if the scaffold file is re-scaffolded.COMMENT
MEDIUM⚡…mposer/Plugin/Scaffold/Functional/ComposerHookTest.php134 // since there is no lock file. Ensure that scaffold operation ran.COMMENT
MEDIUM⚡…mposer/Plugin/Scaffold/Functional/ComposerHookTest.php140 // Run scaffold operation again. It should not print anything.COMMENT
MEDIUM⚡…mposer/Plugin/Scaffold/Functional/ComposerHookTest.php145 // Delete a file and run it again. It should re-scaffold the removed file.COMMENT
MEDIUM…ser/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php71 // First step: set up the Scaffold plug in. Ensure that scaffold operationCOMMENT
MEDIUM…ser/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php76 // Next, bring back packagist.org and install core-composer-scaffold:8.8.0.COMMENT
MEDIUM…ser/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php101 // Remove a scaffold file and run the scaffold command again to prove thatCOMMENT
MEDIUMcore/scripts/PackageManagerFixtureCreator.php36 // Copy drupal scaffold file mapping from core/composer.json toCOMMENT
MEDIUMcore/lib/Drupal/Core/Session/SessionConfiguration.php31 // @see core/assets/scaffold/files/default.services.ymlCOMMENT
MEDIUM…ge_manager/tests/src/Build/TemplateProjectTestBase.php505 // scaffold files, like Drupal core.COMMENT
MEDIUM…age_manager/tests/src/Kernel/ComposerInspectorTest.php505 // The scaffold and runtime plugins are explicitly disallowed by theCOMMENT
MEDIUM…/Kernel/PathExcluder/SiteConfigurationExcluderTest.php107 // to ensure the scaffold plugin can copy certain files into there.COMMENT
MEDIUM…ckage_manager/src/PathExcluder/UnknownPathExcluder.php97 // operations, along with `composer.json`, `composer.lock`, and any scaffoldCOMMENT
MEDIUM…ckage_manager/src/PathExcluder/UnknownPathExcluder.php107 // to do anything special for scaffold files that live in it.COMMENT
MEDIUMcomposer/Plugin/Scaffold/ComposerScaffoldCommand.php41For more information, see https://www.drupal.org/docs/develop/using-composer/using-drupals-composer-scaffold.CODE
MEDIUMcomposer/Plugin/Scaffold/ScaffoldFilePath.php132 // Calculate the full path to the source scaffold file.COMMENT
MEDIUMcomposer/Plugin/Scaffold/Handler.php136 // may declare scaffold files. Note that the top-level composer.json fileCOMMENT
MEDIUMcomposer/Plugin/Scaffold/Handler.php144 // Call any pre-scaffold scripts that may be defined.COMMENT
MEDIUMcomposer/Plugin/Scaffold/Handler.php159 // Get the scaffold files whose contents on disk match what we are about toCOMMENT
MEDIUMcomposer/Plugin/Scaffold/Handler.php181 // Add the managed scaffold files to .gitignore if applicable.COMMENT
MEDIUMcomposer/Plugin/Scaffold/Handler.php185 // Call post-scaffold scripts.COMMENT
MEDIUMcomposer/Plugin/Scaffold/Handler.php233 // Warn the user if they allow a package that does not have any scaffoldCOMMENT
MEDIUMcomposer/Plugin/Scaffold/Handler.php235 // but might not have scaffold files (version 8.7.x and earlier).COMMENT
MEDIUMcomposer/Plugin/Scaffold/README.md21[drupal-composer/drupal-project](https://github.com/drupal-composer/drupal-scaffold)CODE
MEDIUMcomposer/Plugin/Scaffold/README.md38files. See [altering scaffold files](#altering-scaffold-files) for moreCODE
MEDIUMcomposer/Plugin/Scaffold/README.md192scaffold files](#altering-scaffold-files), above. Excluding a file means thatCODE
MEDIUMcomposer/Plugin/Scaffold/README.md500### drupal-composer/drupal-scaffoldCOMMENT
MEDIUMcomposer/Plugin/Scaffold/AllowedPackages.php100 // which of the newly-installed packages have scaffold operations, andCOMMENT
MEDIUMcomposer/Plugin/Scaffold/AllowedPackages.php101 // whether or not they are allowed to scaffold by the allowed-packagesCOMMENT
MEDIUMcomposer/Plugin/Scaffold/Operations/AppendOp.php120 // Be extra-noisy of creating a new file or appending to a non-scaffoldCOMMENT
MEDIUMcomposer/Plugin/Scaffold/Operations/AppendOp.php162 // If there is no existing scaffold file at the target location, then anyCOMMENT
MEDIUM…/Plugin/Scaffold/Operations/ScaffoldFileCollection.php41 // when two projects scaffold the same file and we have to either replace orCOMMENT
MEDIUM…/Plugin/Scaffold/Operations/ScaffoldFileCollection.php63 // path, notify the scaffold operation of this fact.COMMENT
MEDIUM…/Plugin/Scaffold/Operations/ScaffoldFileCollection.php68 // Combine the scaffold operation with the destination and record it.COMMENT
MEDIUMcomposer/Template/README.txt66https://www.drupal.org/docs/develop/using-composer/using-drupals-composer-scaffoldCODE
AI Slop Vocabulary11 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMcore/lib/Drupal/Core/TypedData/TypedData.php178 // Variables in double quotes used to leverage fast string concatenation.COMMENT
MEDIUMcore/lib/Drupal/Core/Template/TwigEnvironment.php110 // "serialization.yaml" service. This allows the core serializer to utilizeCOMMENT
MEDIUMcore/lib/Drupal/Core/Template/TwigEnvironment.php173 // "serialization.yaml" service. This allows the core serializer to utilizeCOMMENT
MEDIUMcore/lib/Drupal/Core/Routing/RouteProvider.php317 // the explicit cast makes this sort more robust against unexpected input.COMMENT
MEDIUM…config_translation/src/FormElement/FormElementBase.php58 // other in the source for each element, which is why we utilize theCOMMENT
MEDIUMcore/modules/locale/src/LocaleProjectStorage.php212 // check for possible out-of-date project information more robust.COMMENT
MEDIUM…dules/file/src/Plugin/Field/FieldWidget/FileWidget.php231 // Essentially we use the managed_file type, extended with someCOMMENT
MEDIUMcore/modules/comment/src/CommentViewBuilder.php112 // Pre-load associated users into cache to leverage multiple loading.COMMENT
MEDIUM…aint/SourceEditingRedundantTagsConstraintValidator.php114 // Essentially when assessing a particular value (for example `<span>`),COMMENT
MEDIUM…odules/views/src/Entity/Render/EntityFieldRenderer.php140 // leverage multiple-entity building of formatter output, we build theCOMMENT
MEDIUMcore/modules/help/src/HelpTopicTwigLoader.php77 // utilize core related functionality which isn't available as theCOMMENT
Synthetic Comment Markers3 hits · 30 pts
SeverityFileLineSnippetContext
HIGH…b/Drupal/Core/Plugin/Context/LazyContextRepository.php69 // runtime contexts and assign them as requested.COMMENT
HIGH⚡…ode/tests/src/Functional/NodeFieldMultilingualTest.php114 // Verify that body is correctly displayed using Italian as requestedCOMMENT
HIGH⚡…ode/tests/src/Functional/NodeFieldMultilingualTest.php119 // Verify that body is correctly displayed using English as requestedCOMMENT
Slop Phrases11 hits · 25 pts
SeverityFileLineSnippetContext
MEDIUMcore/lib/Drupal/Core/Lock/LockBackendInterface.php25 * name of the function performing the operation. Here is a simple example:COMMENT
MEDIUM⚡…mo_umami/tests/src/Functional/DemoUmamiProfileTest.php289 $web_assert->pageTextContains('This site is intended for demonstration purposes.');CODE
MEDIUM⚡…mo_umami/tests/src/Functional/DemoUmamiProfileTest.php294 $web_assert->pageTextContains('This site is intended for demonstration purposes.');CODE
MEDIUM⚡…mo_umami/tests/src/Functional/DemoUmamiProfileTest.php299 $web_assert->pageTextContains('This site is intended for demonstration purposes.');CODE
MEDIUM⚡…mo_umami/tests/src/Functional/DemoUmamiProfileTest.php304 $web_assert->pageTextContains('This site is intended for demonstration purposes.');CODE
MEDIUM⚡…mo_umami/tests/src/Functional/DemoUmamiProfileTest.php309 $web_assert->pageTextContains('This site is intended for demonstration purposes.');CODE
LOW…article_body/give-it-a-go-and-grow-your-own-herbs.html15<p>Coriander can grow indoors, but unlike the other herbs, it doesn't like full sun. If you have a south facing kitchen CODE
MEDIUMcore/profiles/demo_umami/src/Hook/DemoUmamiHooks.php135 'content' => (string) $this->t('This site is intended for demonstration purposes.'),CODE
LOW…e/modules/system/src/Controller/DbUpdateController.php470 $message .= '<p>' . $this->t("<strong>Reminder: don't forget to set the <code>\$settings['update_free_access']</coCODE
MEDIUM…dules/views/src/Plugin/views/argument/NullArgument.php36 '#description' => $this->t('By checking this field, you can use this to make sure views with more arguments than nCODE
LOW…e/modules/views/src/Plugin/views/field/EntityField.php572 '#description' => $this->t('If checked, multiple values for this field will be shown in the same row. If not checkCODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALcore/modules/ckeditor5/js/ckeditor5.js402 editor.ui.view.editable.element.append(element);CODE
CRITICAL…keditor5_plugins/drupalMedia/src/drupalmediaediting.js220 this.editor.editing.view.domConverter.blockElements.push('drupal-media');CODE
Verbosity Indicators7 hits · 14 pts
SeverityFileLineSnippetContext
LOW⚡core/lib/Drupal/Core/Command/GenerateTheme.php167 // Step 1: Replace old patterns with placeholders in content.COMMENT
LOW⚡core/lib/Drupal/Core/Command/GenerateTheme.php169 // Step 2: Replace placeholders with new patterns in content.COMMENT
LOWcore/lib/Drupal/Core/Command/GenerateTheme.php191 // Step 3: Repeat for file renaming.COMMENT
LOWcore/modules/file/src/Element/ManagedFile.php253 // Set up the buttons first since we need to check if they were clicked.COMMENT
LOWcore/modules/mysql/src/Driver/Database/mysql/Schema.php700 // information_schema.columns so we need to check if the table exists.COMMENT
LOW⚡…ia/tests/src/Functional/Rest/MediaResourceTestBase.php332 // Step 1: upload file, results in File entity marked temporary.COMMENT
LOW⚡…ia/tests/src/Functional/Rest/MediaResourceTestBase.php338 // Step 2: create Media entity using the File, makes File entity permanent.COMMENT
Structural Annotation Overuse6 hits · 12 pts
SeverityFileLineSnippetContext
LOW⚡core/lib/Drupal/Core/Command/GenerateTheme.php167 // Step 1: Replace old patterns with placeholders in content.COMMENT
LOW⚡core/lib/Drupal/Core/Command/GenerateTheme.php169 // Step 2: Replace placeholders with new patterns in content.COMMENT
LOWcore/lib/Drupal/Core/Command/GenerateTheme.php191 // Step 3: Repeat for file renaming.COMMENT
LOW…s/node/tests/src/Functional/Views/NodeLanguageTest.php244 // IMPORTANT: Make sure this part of the test is last -- it is changingCOMMENT
LOW⚡…ia/tests/src/Functional/Rest/MediaResourceTestBase.php332 // Step 1: upload file, results in File entity marked temporary.COMMENT
LOW⚡…ia/tests/src/Functional/Rest/MediaResourceTestBase.php338 // Step 2: create Media entity using the File, makes File entity permanent.COMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMcore/core.libraries.yml11 # This file is not aggregated to force the creation of a new aggregate fileCOMMENT
MEDIUM…themes/sdc_theme_test/components/bar/bar.component.yml1# This file is intentionally left emptyCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…migrate/src/Plugin/migrate/process/SkipRowIfNotSet.php28 * # Check if the "contact" key exists in the "data" array.COMMENT