Repository Analysis

infernojs/inferno

:fire: An extremely fast, React-like JavaScript library for building modern user interfaces

1.4 Likely human-written View on GitHub
1.4
Adjusted Score
1.4
Raw Score
100%
Time Factor
2026-05-27
Last Push
16,419
Stars
JavaScript
Language
113,238
Lines of Code
410
Files
99
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 6HIGH 0MEDIUM 2LOW 91

Pattern Findings

99 matches across 5 categories. Click a row to expand file-level details.

Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippet
CRITICAL…es/inferno-create-element/__tests__/components.spec.ts194 container.firstChild.firstChild.firstChild.firstChild.getAttribute(
CRITICAL…es/inferno-create-element/__tests__/components.spec.ts213 container.firstChild.firstChild.firstChild.firstChild.getAttribute(
CRITICAL…es/inferno-create-element/__tests__/components.spec.ts278 container.firstChild.firstChild.firstChild.firstChild.getAttribute(
CRITICAL…es/inferno-create-element/__tests__/components.spec.ts298 container.firstChild.firstChild.firstChild.firstChild.getAttribute(
CRITICAL…ges/inferno-create-element/__tests__/elements.spec.jsx259 container.firstChild.firstChild.firstChild.firstChild.firstChild.getAttribute(
CRITICAL…ges/inferno-create-element/__tests__/elements.spec.jsx296 container.firstChild.firstChild.firstChild.firstChild.firstChild.getAttribute(
Hyper-Verbose Identifiers47 hits · 52 pts
SeverityFileLineSnippet
LOWdocs/uibench-lifecycle/app.js7function onComponentWillMountCounter() {
LOWdocs/uibench-lifecycle/app.js11function onComponentDidMountCounter() {
LOWdocs/uibench-lifecycle/app.js15function onComponentShouldUpdateCounter() {
LOWdocs/uibench-lifecycle/app.js20function onComponentWillUpdateCounter() {
LOWdocs/uibench-lifecycle/app.js24function onComponentDidUpdateCounter() {
LOWdocs/uibench-lifecycle/app.js28function onComponentWillUnmountCounter() {
LOWdocs/uibench-lifecycle/app.js32function onComponentDidAppearCounter() {
LOWdocs/uibench-lifecycle/app.js36function onComponentWillDisappearCounter(dom, props, callback) {
LOWdocs/event-test/app.js7function hoistedNonSyntheticEvents() {
LOWdocs/event-test/app.js21function hoistedLinkEventNonSynthetic() {
LOWdocs/event-test/app.js49function newFuncsNonSyntheticEvents() {
LOWpackages/inferno-mobx/src/observer.ts133 function makePropertyObservableReference(propName): void {
LOWpackages/inferno/src/core/validate.ts154export function validateVNodeElementChildren(vNode): void {
LOWpackages/inferno/src/DOM/mounting.ts357function addAppearAnimationHookClass(
LOWpackages/inferno/src/DOM/mounting.ts367function addAppearAnimationHookFunctional(
LOWpackages/inferno/src/DOM/mounting.ts378export function mountClassComponentCallbacks(
LOWpackages/inferno/src/DOM/mounting.ts419export function mountFunctionalComponentCallbacks(
LOWpackages/inferno/src/DOM/patching.ts167function patchContentEditableChildren(dom, nextChildren): void {
LOWpackages/inferno/src/DOM/patching.ts391function replaceOneVNodeWithMultipleVNodes(
LOWpackages/inferno/src/DOM/patching.ts1006function patchKeyedChildrenComplex(
LOWpackages/inferno/src/DOM/unmounting.ts164function addDisappearAnimationHook(
LOWpackages/inferno/src/DOM/wrappers/processElement.ts28export function addFormElementEventHandlers(
LOWpackages/inferno/src/DOM/utils/componentUtil.ts57export function createClassComponentInstance(
LOWpackages/inferno/src/DOM/utils/componentUtil.ts123export function renderFunctionalComponent(
LOWpackages/inferno/src/DOM/utils/common.ts131export function callAllMoveAnimationHooks(
LOWpackages/inferno/src/DOM/utils/common.ts184function createDeferComponentClassRemovalCallback(vNode, parentDOM) {
LOWpackages/inferno/src/DOM/events/delegation.ts51function updateOrAddSyntheticEvent(name: string, dom): DelegateEventTypes {
LOWpackages/inferno-server/src/utils.ts125export function renderFunctionalComponent(vNode: VNode, context): InfernoNode {
LOWpackages/inferno-test-utils/src/index.ts85export function isRenderedClassComponentOfType(
LOWpackages/inferno-test-utils/src/index.ts171export function scryRenderedDOMElementsWithClass(
LOWpackages/inferno-test-utils/src/index.ts199export function scryRenderedDOMElementsWithTag(
LOWpackages/inferno-test-utils/src/index.ts208export function scryRenderedVNodesWithType(
LOWpackages/inferno-test-utils/src/index.ts225export function findRenderedDOMElementWithClass(
LOWpackages/inferno-test-utils/src/index.ts237export function findRenderedDOMElementWithTag(
LOWpackages/inferno-test-utils/src/index.ts249export function findRenderedVNodeWithType(
LOWpackages/inferno-redux/src/components/Provider.ts50 function componentWillReceiveProps(nextProps) {
LOWpackages/inferno-router/src/Switch.ts33function extractFirstMatchFromChildren(
LOWpackages/inferno-router/src/resolveLoaders.ts262// function convertFormDataToSearchParams(formData: FormData): URLSearchParams {
LOWpackages/inferno-animation/readme.md137export function animateModalOnWillDisappear(dom, callback, onClosed) {
LOW…rno-animation/__tests__/animatedMoveComponent.spec.tsx13 function waitForAnimationAndContinue(condition, callback, arg1?): void {
LOW…rno-animation/__tests__/animatedMoveComponent.spec.tsx168 function waitForAnimationAndContinue(condition, callback, arg1?): void {
LOW…erno-animation/__tests__/animatedAllComponent.spec.tsx18 function waitForAnimationAndContinue(condition, callback, arg1?: any): void {
LOW…erno-animation/__tests__/animatedAllComponent.spec.tsx173 function waitForAnimationAndContinue(condition, callback, arg1?): void {
LOW…inferno-animation/__tests__/animatedComponent.spec.tsx17 function waitForAnimationAndContinue(condition, callback, arg1?): void {
LOW…inferno-animation/__tests__/animatedComponent.spec.tsx172 function waitForAnimationAndContinue(condition, callback, arg1?): void {
LOWpackages/inferno-animation/src/utils.ts225export function registerTransitionListener(
LOWpackages/inferno-animation/src/animationCoordinator.ts56export function consumeGlobalAnimationSource(
Over-Commented Block43 hits · 43 pts
SeverityFileLineSnippet
LOWdocs/uibench/custom-uibench.js261 }
LOWdocs/uibench/custom-uibench.js281 // }
LOWdocs/uibench/custom-uibench.js301 // console.log = logFn;
LOWdocs/uibench/custom-uibench.js321 // throw new Error("Spec test failed: invalid data-id attribute in the AnimBox");
LOWdocs/uibench/custom-uibench.js341 // }
LOWdocs/uibench/custom-uibench.js361 // if (mainTag.length !== 1) {
LOWdocs/uibench/custom-uibench.js381 // }
LOWdocs/uibench/custom-uibench.js401 // onUpdate(initialState, "init");
LOWdocs/uibench/custom-uibench.js421 // tableRows = document.getElementsByClassName("TableRow");
LOWscripts/fakedom/uibench-reactlike/start.js1import {writeFile} from 'fs';
LOWscripts/fakedom/uibench-reactlike/start.js21// totalEverything += currentNode.selfSize;
LOW…ages/inferno-compat/__tests__/ReactJSXElement.spec.jsx61 expect(element.props.foo).toBe(1);
LOW…ages/inferno-compat/__tests__/ReactJSXElement.spec.jsx81 // var expectation = {foo:'56'};
LOW…ages/inferno-compat/__tests__/ReactJSXElement.spec.jsx101 // it('overrides children if null is provided as a JSX child', function() {
LOWpackages/inferno-compat/__tests__/lifecycle.spec.jsx221 // expect(calls.argsFor(++i)).toEqual(['UPDATE']);
LOWpackages/inferno-compat/__tests__/lifecycle.spec.jsx241
LOW…ages/inferno-compat/__tests__/ReactMultiChild.spec.jsx201
LOW…ages/inferno-compat/__tests__/ReactMultiChild.spec.jsx221 // ReactDOMFeatureFlags.useCreateElement = false;
LOW…ages/inferno-compat/__tests__/ReactMultiChild.spec.jsx241 // // Warm the cache used by `getMarkupWrap`.
LOW…ages/inferno-compat/__tests__/ReactMultiChild.spec.jsx261 // expect(setInnerHTML.calls.count()).toBe(callCountOnMount + 1);
LOWpackages/inferno-compat/__tests__/ReactMount.spec.jsx121
LOWpackages/inferno-compat/__tests__/ReactMount.spec.jsx141 // spyOn(console, 'error');
LOW…ckages/inferno-compat/__tests__/ReactChildren.spec.jsx181 // var zero = <div key="keyZero" />;
LOW…ckages/inferno-compat/__tests__/ReactChildren.spec.jsx221 [<div key="banana" />, <div key="camel" />, <div key="deli" />],
LOW…nferno-compat/__tests__/ReactMountDestruction.spec.jsx41 // it('should warn when unmounting a non-container root node', function() {
LOW…nferno-compat/__tests__/ReactMountDestruction.spec.jsx61 // });
LOW…nferno-compat/__tests__/ReactMountDestruction.spec.jsx81 // 'unmount was rendered by React and is not a top-level container. ' +
LOW…-server/__tests__/creation-queuestream.spec.server.tsx401 template: () => <input defaultValue={123} />,
LOW…ferno-server/__tests__/creation-stream.spec.server.tsx321 result: '<input type="text" value="foo">',
LOW…ckages/inferno-create-element/__tests__/select.spec.js61
LOW…ckages/inferno-create-element/__tests__/select.spec.js81 // render(template(null), container);
LOW…ges/inferno-redux/__tests__/components/connect.spec.js1421 // }
LOW…ges/inferno-redux/__tests__/components/connect.spec.js1441 // renderToContainer(<ProviderMock store={store}>{makeContainer(() => 'hey', () => ({}), () => ({}))}</ProviderMoc
LOW…ges/inferno-redux/__tests__/components/connect.spec.js1461 //
LOWpackages/inferno-redux/src/connect/wrapMapToProps.ts21export const getDependsOnOwnProps = (mapToProps): boolean =>
LOWpackages/inferno-router/src/resolveLoaders.ts161// some of the related code is commented away
LOWpackages/inferno-router/src/resolveLoaders.ts201 inBrowser || !isUndefined(base)
LOWpackages/inferno-router/src/resolveLoaders.ts261
LOWpackages/inferno-animation/src/animationCoordinator.ts81 }
LOW.github/COMMIT_TEMPLATE.md1# <type>: (If applied, this commit will...) <subject> (Max 50 char)
LOW.github/COMMIT_TEMPLATE.md21# Remember to
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply need
LOW.github/workflows/codeql-analysis.yml61 # ℹ️ Command-line programs to run using the OS shell.
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippet
MEDIUM.github/COMMIT_TEMPLATE.md20# --------------------
MEDIUM.github/COMMIT_TEMPLATE.md28# --------------------
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWdocs/dbmonster/ENV.js136 function getData(keepIdentity) {