Repository Analysis

livewire/livewire

A full-stack framework for Laravel that takes the pain out of building dynamic UIs.

3.3 Likely human-written View on GitHub
3.3
Adjusted Score
3.3
Raw Score
100%
Time Factor
2026-05-21
Last Push
23,529
Stars
PHP
Language
124,535
Lines of Code
1015
Files
344
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 0MEDIUM 12LOW 331

Pattern Findings

344 matches across 8 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers315 hits · 345 pts
SeverityFileLineSnippet
LOWlegacy_tests/Unit/TestCase.php67 protected function resolveApplicationHttpKernel($app)
LOWlegacy_tests/Browser/TestCase.php42 function registerComponentForNextTest($components)
LOWlegacy_tests/Browser/TestCase.php49 function wipeRuntimeComponentRegistration()
LOWlegacy_tests/Browser/TestCase.php216 protected function resolveApplicationHttpKernel($app)
LOWlegacy_tests/Browser/FileDownloads/Test.php237 public function downloadWithContentTypeHeader($contentType = null)
LOWlegacy_tests/Browser/FileDownloads/Test.php247 public function downloadAnUntitledFileWithContentTypeHeader($contentType = 'text/html')
LOWlegacy_tests/Browser/FileDownloads/Test.php269 public function downloadFromResponseWithContentTypeHeader()
LOWlegacy_tests/Browser/FileDownloads/Test.php283 public function downloadQuotedContentDispositionFilename()
LOWlegacy_tests/Browser/FileDownloads/Test.php293 public function downloadQuotedContentDispositionFilenameFromResponse()
LOWjs/debounce.js41export function callAndClearComponentDebounces(component, callback) {
LOWjs/fragment.js133export function findMatchingEndMarkerNode(startMarkerNode, metadata) {
LOWjs/fragment.js151export function extractInnerHtmlFromFragmentHtml(fragmentHtml) {
LOWjs/fragment.js163export function extractFragmentMetadataFromHtml(fragmentHtml) {
LOWjs/fragment.js175export function extractFragmentMetadataFromMarkerNode(startMarkerNode) {
LOWjs/directives.js5export function matchesForLivewireDirective(attributeName) {
LOWjs/directives.js47export function customDirectiveHasBeenRegistered(name) {
LOWjs/lifecycle.js119function ensureLivewireScriptIsntMisplaced() {
LOWjs/directives/wire-poll.js100function theDirectiveIsOffTheElement(el) {
LOWjs/directives/wire-poll.js104function theDirectiveIsMissingKeepAlive(directive) {
LOWjs/directives/wire-poll.js112function theElementIsNotInTheViewport(el) {
LOWjs/directives/wire-model.js177function componentIsMissingProperty(component, property) {
LOWjs/directives/shared.js2export function toggleBooleanStateDirective(el, directive, isTruthy, cachedDisplay = null) {
LOWjs/directives/wire-loading.js73function whenTargetsArePartOfRequest(component, el, targets, inverted, [ startLoading, endLoading ]) {
LOWjs/directives/wire-loading.js125function whenTargetsArePartOfFileUpload(component, targets, [ startLoading, endLoading ]) {
LOWjs/plugins/navigate/scroll.js2export function storeScrollInformationInHtmlBeforeNavigatingAway() {
LOWjs/plugins/navigate/scroll.js12export function restoreScrollPositionOrScrollToTop() {
LOWjs/plugins/navigate/persist.js5export function storePersistantElementsForLater(callback) {
LOWjs/plugins/navigate/persist.js19export function putPersistantElementsBack(callback) {
LOWjs/plugins/navigate/page.js11export function swapCurrentPageWithNewHtml(html, andThen) {
LOWjs/plugins/navigate/page.js44function prepNewBodyScriptTagsToRun(newBody, oldBodyScriptTagHashes) {
LOWjs/plugins/navigate/page.js163async function injectScriptTagAndWaitForItToFullyLoad(script) {
LOWjs/plugins/navigate/page.js182function ifTheQueryStringChangedSinceLastRequest(el, currentHeadChildren) {
LOWjs/plugins/navigate/links.js70export function extractDestinationFromLink(linkEl) {
LOWjs/plugins/navigate/links.js74export function createUrlObjectFromString(urlString) {
LOWjs/plugins/navigate/links.js78export function getUriStringFromUrlObject(urlObject) {
LOWjs/plugins/navigate/index.js222function fetchHtmlOrUsePrefetchedHtml(fromDestination, callback, errorCallback) {
LOWjs/plugins/navigate/index.js228function preventAlpineFromPickingUpDomChanges(Alpine, callback) {
LOWjs/plugins/navigate/index.js240function fireEventForOtherLibrariesToHookInto(name, detail) {
LOWjs/plugins/navigate/index.js252function nowInitializeAlpineOnTheNewPage(Alpine) {
LOWjs/plugins/navigate/index.js258function autofocusElementsWithTheAutofocusAttribute() {
LOWjs/plugins/navigate/index.js262function cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement() {
LOWjs/plugins/navigate/teleport.js11export function removeAnyLeftOverStaleTeleportTargets(body) {
LOWjs/plugins/navigate/history.js67export function updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks() {
LOWjs/plugins/navigate/history.js76export function updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(key, url) {
LOWjs/plugins/navigate/history.js82export function whenTheBackOrForwardButtonIsClicked(
LOWjs/plugins/navigate/history.js122export function updateUrlAndStoreLatestHtmlForFutureBackButtons(
LOWjs/plugins/navigate/prefetch.js30export function storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination) {
LOWjs/plugins/navigate/bar.js32export function removeAnyLeftOverStaleProgressBars() {
LOWjs/features/supportQueryString.js81function normalizeQueryStringEntry(key, value) {
LOWjs/features/supportNavigate.js19export function shouldRedirectUsingNavigateOr(effects, url, or) {
LOWjs/features/supportScriptsAndAssets.js62function onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, callback) {
LOWjs/features/supportScriptsAndAssets.js88async function onlyIfAssetsHaventBeenLoadedAlreadyOnThisPage(key, callback) {
LOWjs/request/index.js74export function interceptComponentMessage(component, actionNameOrCallback, maybeCallback) {
LOWjs/request/index.js89export function interceptComponentRequest(component, actionNameOrCallback, maybeCallback) {
LOWjs/request/index.js178export function createOrAddToOutstandingMessage(action) {
LOWjs/request/index.js566async function interceptStreamAndReturnFinalResponse(response, callback) {
LOWjs/request/index.js656function createUrlObjectFromString(urlString) {
LOWjs/request/legacy.js3export function registerLegacyEventSupport(interceptRequest, interceptMessage) {
LOWjs/request/interactions.js3export function coordinateNetworkInteractions(messageBus) {
LOWsrc/LivewireManager.php72 function prepareViewsForCompilationUsing(callable $callback)
255 more matches not shown…
Decorative Section Separators11 hits · 42 pts
SeverityFileLineSnippet
MEDIUMscripts/worktree.sh4# ── Resolve the repo root from this script's location ────────────────────────
MEDIUMscripts/worktree.sh7# ── Usage ────────────────────────────────────────────────────────────────────
MEDIUMscripts/worktree.sh26# ── Check if it already exists ───────────────────────────────────────────────
MEDIUMscripts/worktree.sh34# ── Fetch & create ───────────────────────────────────────────────────────────
MEDIUMscripts/worktree.sh41# ── Install deps ─────────────────────────────────────────────────────────────
MEDIUMscripts/worktree.sh57# ── Done ─────────────────────────────────────────────────────────────────────
MEDIUMscripts/cleanup-worktree.sh4# ── Resolve the repo root from this script's location ────────────────────────
MEDIUMscripts/cleanup-worktree.sh7# ── Usage ────────────────────────────────────────────────────────────────────
MEDIUMscripts/cleanup-worktree.sh23# ── Validate ─────────────────────────────────────────────────────────────────
MEDIUMscripts/cleanup-worktree.sh29# ── Remove ───────────────────────────────────────────────────────────────────
MEDIUMscripts/cleanup-worktree.sh33# ── Prune any stale worktree references ──────────────────────────────────────
Over-Commented Block11 hits · 11 pts
SeverityFileLineSnippet
LOWclose.bash21# for pid in ${vscode_renderer_pids}; do
LOWlegacy_tests/Browser/TestCase.php101 // ->filter(function ($class) {
LOWlegacy_tests/Browser/TestCase.php121 // \LegacyTests\Browser\SyncHistory\ComponentWithoutQueryString::class
LOWlegacy_tests/Browser/QueryString/Test.php161
LOWlegacy_tests/Browser/FileDownloads/Test.php101 // succeed(({ effects }) => {
LOWlegacy_tests/Browser/DataBinding/InputSelect/Test.php81 // ->assertSeeIn('@output', '3')
LOWjs/plugins/history/index.js81 // The new strategy needs to be something like:
LOWdocs/javascript.md781
LOWscripts/laravel.php61 // Illuminate\Broadcasting\BroadcastServiceProvider::class,
LOWsrc/Features/SupportCompiledWireKeys/BrowserTest.php501 // https://github.com/livewire/livewire/discussions/8877
LOWsrc/Features/SupportReleaseTokens/UnitTest.php61 ComponentWithReleaseToken::$releaseToken = 'bob';
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICAL….obsidian/plugins/obsidian-languagetool-plugin/main.js1"use strict";var e=require("obsidian"),t=require("path"),n=require("@codemirror/view"),r=require("@codemirror/state"),i=
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippet
LOWsrc/Features/SupportValidation/UnitTest.php975 public $emails = ['foo@bar.com', 'invalid-email'];
LOWsrc/Features/SupportCSP/BrowserTest.php162 ->type('@name', 'John Doe')
LOWsrc/Features/SupportCSP/BrowserTest.php373 ->type('@name', 'John Doe')
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMdocs/.obsidian/plugins/obsidian-dynamic-toc/main.js2`)}function J(i,e){let t=i.map(a=>a.level).reduce((a,d)=>Math.min(a,d)),n=i.filter(a=>a.level===t),s=e.delimiter?e.delim
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOWjs/directives/wire-loading.js172 // If the property is nested, like `foo.bar`, we need to check if the root `foo` is the target.
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippet
LOWscripts/bump-alpine.js30console.log(`\nDone. Alpine updated to ^${latest}. Don't forget to commit package.json and package-lock.json.`)