Repository Analysis

pixijs/pixijs

The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.

1.8 Likely human-written View on GitHub
1.8
Adjusted Score
1.8
Raw Score
100%
Time Factor
2026-05-29
Last Push
47,284
Stars
TypeScript
Language
204,371
Lines of Code
1596
Files
145
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 6HIGH 24MEDIUM 0LOW 115

Pattern Findings

145 matches across 9 categories. Click a row to expand file-level details.

Synthetic Comment Markers24 hits · 180 pts
SeverityFileLineSnippet
HIGHsrc/filters/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/culling/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/environment-browser/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/app/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/prepare/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/color/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/compressed-textures/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/unsafe-eval/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/utils/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/math-extras/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/extensions/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/ticker/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/maths/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/environment-webworker/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/environment/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/dom/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/rendering/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/scene/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/events/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/accessibility/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/assets/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/spritesheet/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/advanced-blend-modes/index.ts1// Auto-generated code, do not edit manually
HIGHsrc/gif/index.ts1// Auto-generated code, do not edit manually
Hyper-Verbose Identifiers64 hits · 64 pts
SeverityFileLineSnippet
LOWtranscoders/ktx/libktx.js9var Module=typeof LIBKTX!=="undefined"?LIBKTX:{};var readyPromiseResolve,readyPromiseReject;Module["ready"]=new Promise(
LOWtranscoders/basis/basis_transcoder.js260 function updateGlobalBufferAndViews(buf) { buffer = buf; Module.HEAP8 = HEAP8 = new Int8Array(buf); Module.H
LOWtranscoders/basis/basis_transcoder.js327 }addRunDependency('wasm-instantiate'); function receiveInstantiatedSource(output) { receiveInstance(outp
LOWtranscoders/basis/basis_transcoder.js411 function throwInternalError(message) { throw new InternalError(message); } function whenDependentTypesAreRes
LOWtranscoders/basis/basis_transcoder.js461 } function shallowCopyInternalPointer(o) { return { count: o.count, deleteScheduled: o.deleteScheduled, pres
LOWtranscoders/basis/basis_transcoder.js548 } function constNoSmartPtrRawPointerToWireType(destructors, handle)
LOWtranscoders/basis/basis_transcoder.js590 } function nonConstNoSmartPtrRawPointerToWireType(destructors, handle)
LOWtranscoders/basis/basis_transcoder.js600 } function simpleReadValueFromPointer(pointer) { return this.fromWireType(HEAPU32[pointer >> 2]); } function
LOWtranscoders/basis/basis_transcoder.js612 } function getInheritedInstanceCount() { return Object.keys(registeredInstances).length; } function getLiveI
LOWtranscoders/basis/basis_transcoder.js888 } function floatReadValueFromPointer(name, shift) { switch (shift) { case 2:return function (pointer) { retu
LOWtranscoders/basis/basis_transcoder.js910 } function integerReadValueFromPointer(name, shift, signed) { switch (shift) { case 0:return signed ? functi
LOWscripts/utils/autoGenerateUnsafeEvalFunctions.ts29function autoGenerateUnsafeEvalFunctions()
LOWscripts/utils/autoGenerateUnsafeEvalFunctions.ts31 function convertToFunctionWithLocation(body: string)
LOWscripts/utils/autoGenerateUnsafeEvalFunctions.ts90function autoGenerateUboUnsafeEvalFunctions()
LOWsrc/compressed-textures/shared/detectCompressed.ts49function extractExtensionsForCompressedTextureFormats(formats: TEXTURE_FORMATS[]): string[]
LOWsrc/compressed-textures/dds/parseDDS.ts177function getUncompressedTextureFormat(header: Uint32Array)
LOW…-textures/ktx2/utils/getTextureFormatFromKTXTexture.ts10export function getTextureFormatFromKTXTexture(ktxTexture: KTXTexture): COMPRESSED_TEXTURE_FORMATS
LOW…ures/ktx2/utils/gpuFormatToKTXBasisTranscoderFormat.ts15export function gpuFormatToKTXBasisTranscoderFormat(transcoderFormat: string): string
LOW…essed-textures/ktx2/utils/createLevelBuffersFromKTX.ts7export function createLevelBuffersFromKTX(ktxTexture: KTXTexture): Uint8Array[]
LOW…xtures/basis/utils/gpuFormatToBasisTranscoderFormat.ts15export function gpuFormatToBasisTranscoderFormat(transcoderFormat: string): number
LOWsrc/unsafe-eval/ubo/generateUboSyncPolyfill.ts48export function generateUboSyncPolyfillWGSL(uboElements: UboElement[]): UniformsSyncCallback
LOW…c/unsafe-eval/uniforms/generateUniformsSyncPolyfill.ts15export function generateUniformsSyncPolyfill(
LOWsrc/unsafe-eval/shader/generateShaderSyncPolyfill.ts11export function generateShaderSyncPolyfill(): ShaderSyncFunction
LOW…unsafe-eval/particle/generateParticleUpdatePolyfill.ts14export function generateParticleUpdatePolyfill(properties: Record<string, ParticleRendererProperty>)
LOWsrc/maths/misc/squaredDistanceToLineSegment.ts13export function squaredDistanceToLineSegment(
LOWsrc/environment/autoDetectEnvironment.ts13export async function loadEnvironmentExtensions(skip: boolean): Promise<void>
LOW…/gpu/texture/uploaders/gpuUploadCubeTextureResource.ts12export function createGpuUploadCubeTextureResource(
LOW…xture/utils/getSupportedGPUCompressedTextureFormats.ts8export async function getSupportedGPUCompressedTextureFormats(): Promise<TEXTURE_FORMATS[]>
LOW…rs/gpu/shader/utils/extractAttributesFromGpuProgram.ts92export function extractAttributesFromGpuProgram(
LOW…ers/gpu/shader/utils/removeStructAndGroupDuplicates.ts8export function removeStructAndGroupDuplicates(
LOW…enderers/gpu/shader/utils/createUboSyncFunctionWGSL.ts11export function createUboSyncFunctionWGSL(
LOW…ng/renderers/shared/state/getAdjustedBlendModeBlend.ts14export function getAdjustedBlendModeBlend(blendMode: BLEND_MODES, textureSource: TextureSource): BLEND_MODES
LOWsrc/rendering/renderers/shared/texture/TextureStyle.ts17function createResourceIdFromString(value: string): number
LOW…ers/shared/texture/utils/getSupportedTextureFormats.ts68export async function getSupportedTextureFormats(): Promise<TEXTURE_FORMATS[]>
LOW…/texture/utils/getSupportedCompressedTextureFormats.ts11export async function getSupportedCompressedTextureFormats(): Promise<TEXTURE_FORMATS[]>
LOW…rs/shared/geometry/utils/getAttributeInfoFromFormat.ts40export function getAttributeInfoFromFormat(format: VertexFormat): { size: number; stride: number; normalised: boolean }
LOW…ng/renderers/canvas/utils/mapCanvasBlendModesToPixi.ts12export function mapCanvasBlendModesToPixi(): Record<BLEND_MODES, GlobalCompositeOperation | null>
LOW…ng/renderers/canvas/utils/canUseNewCanvasBlendModes.ts23export function canUseNewCanvasBlendModes(): boolean
LOW…dering/renderers/__tests__/GlobalUniformSystem.test.ts8function createGlobalUniformSystem(): GlobalUniformSystem
LOW…rs/gl/texture/uploaders/glUploadCubeTextureResource.ts17export function createGlUploadCubeTextureResource(
LOW…exture/utils/getSupportedGlCompressedTextureFormats.ts8export function getSupportedGlCompressedTextureFormats(): TEXTURE_FORMATS[]
LOW…nderers/gl/texture/utils/mapViewDimensionToGlTarget.ts11export function mapViewDimensionToGlTarget(
LOW…derers/gl/texture/utils/mapFormatToGlInternalFormat.ts14export function mapFormatToGlInternalFormat(
LOW…ng/renderers/gl/shader/getBatchSamplersUniformGroup.ts12export function getBatchSamplersUniformGroup(maxTextures: number)
LOW…rs/gl/shader/program/extractAttributesFromGlProgram.ts27export function extractAttributesFromGlProgram(
LOWsrc/rendering/mask/utils/addMaskLocalBounds.ts35function getMatrixRelativeToParent(target: Container, root: Container, matrix: Matrix): Matrix
LOWsrc/rendering/high-shader/compileHighShaderToProgram.ts15export function compileHighShaderGpuProgram({ bits, name }: {bits: HighShaderBit[], name: string}): GpuProgram
LOWsrc/rendering/high-shader/compileHighShaderToProgram.ts47export function compileHighShaderGlProgram({ bits, name }: {bits: HighShaderBit[], name: string}): GlProgram
LOW…ing/high-shader/shader-bits/generateTextureBatchBit.ts144export function generateTextureBatchBitGl(maxTextures: number): HighShaderBit
LOWsrc/rendering/batcher/gpu/getTextureBatchBindGroup.ts28function generateTextureBatchBindGroup(textures: TextureSource[], size: number, key: number, maxTextures: number): BindG
LOW…ering/batcher/gl/utils/checkMaxIfStatementsInShader.ts37export function checkMaxIfStatementsInShader(maxIfs: number, gl: GlRenderingContext): number
LOW…c/scene/text-html/utils/getTemporaryCanvasFromImage.ts18export function getTemporaryCanvasFromImage(image: ImageLike, resolution: number): CanvasAndContext
LOWsrc/scene/container/bounds/getRenderableBounds.ts18export function getGlobalRenderableBounds(renderables: Renderable[], bounds: Bounds): Bounds
LOW…c/scene/container/utils/updateRenderGroupTransforms.ts16export function updateRenderGroupTransforms(renderGroup: RenderGroup, updateChildRenderGroups = false)
LOW…c/scene/container/utils/updateRenderGroupTransforms.ts65export function updateRenderGroupTransform(renderGroup: RenderGroup)
LOW…c/scene/container/utils/updateRenderGroupTransforms.ts108export function updateTransformAndChildren(container: Container, updateTick: number, updateFlags: number)
LOW…c/scene/container/utils/updateRenderGroupTransforms.ts168function updateColorBlendVisibility(
LOW…c/scene/mesh-perspective/utils/compute2DProjections.ts86function generateBasisToPointsMatrix(
LOW…spective/utils/applyProjectiveTransformationToPlane.ts12export function applyProjectiveTransformationToPlane(
LOW…ntainer/shared/utils/generateParticleUpdateFunction.ts16export function generateParticleUpdateFunction(properties: Record<string, ParticleRendererProperty>)
4 more matches not shown…
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippet
CRITICALexamples/filters_custom_interactive_blending/index.ts49 filter.resources.localUniforms.uniforms.uMouse.copyFrom(event.global);
CRITICALsrc/app/__tests__/Application.test.ts202 app.renderer.view.texture.source.on('resize', spy);
CRITICALsrc/app/__tests__/Application.test.ts231 app.renderer.view.texture.source.on('resize', onResize);
CRITICALsrc/app/__tests__/Application.test.ts242 app.renderer.view.texture.source.on('resize', spy);
CRITICALsrc/app/__tests__/Application.test.ts260 app.renderer.view.texture.source.on('resize', spy);
CRITICALsrc/rendering/renderers/gpu/GpuUniformBatchPipe.ts173 this._renderer.gpu.device.queue.submit([commandEncoder.finish()]);
Over-Commented Block38 hits · 38 pts
SeverityFileLineSnippet
LOWtypes/PixiMixins.d.ts1/// <reference path="../src/accessibility/AccessibilityMixins.d.ts" />
LOWtranscoders/basis/basis_transcoder.js1/* eslint-disable */
LOWexamples/events_buttons.ts61 // Use mouse-only events
LOW.github/stale.yml21# Comment to post when closing a stale issue. Set to `false` to disable
LOWsrc/ticker/Ticker.ts641 * @see {@link Ticker#elapsedMS} For raw elapsed time
LOW…c/rendering/renderers/gpu/state/GpuBlendModesToPixi.ts161};
LOW…c/rendering/renderers/gpu/state/GpuBlendModesToPixi.ts181// operation: 'add',
LOW…c/rendering/renderers/gpu/state/GpuBlendModesToPixi.ts201// };
LOW…c/rendering/renderers/gpu/state/GpuBlendModesToPixi.ts221// },
LOW…c/rendering/renderers/gpu/state/GpuBlendModesToPixi.ts241
LOW…c/rendering/renderers/gpu/state/GpuBlendModesToPixi.ts261// color: {
LOW…dering/renderers/shared/shader/utils/uniformParsers.ts1// Parsers, each one of these will take a look at the type of shader property and uniform.
LOW…ndering/renderers/gl/state/mapWebGLBlendModesToPixi.ts41
LOW…exture/utils/getSupportedGlCompressedTextureFormats.ts21 supportedGLCompressedTextureFormats = [
LOW…ng/renderers/gl/shader/utils/createUboElementsSTD40.ts21 // ivec2: 8,
LOWsrc/scene/container/__tests__/Container.Culling.test.ts21 // filterPush = jest.spyOn(renderer.filter, 'push');
LOWsrc/scene/container/__tests__/Container.Culling.test.ts41 // .closePath()
LOWsrc/scene/container/__tests__/Container.Culling.test.ts61 // new Graphics().beginPath().rect(0, 0, 10, 10).fill()
LOWsrc/scene/container/__tests__/Container.Culling.test.ts81 // const graphics = container.addChild(
LOWsrc/scene/container/__tests__/Container.Culling.test.ts101 // + 'should render the filter padding but not the container or child', () =>
LOWsrc/scene/container/__tests__/Container.Culling.test.ts121 // renderer.render(container);
LOWsrc/scene/container/__tests__/Container.Culling.test.ts141
LOWsrc/scene/container/__tests__/Container.Culling.test.ts161 // const graphics = container.addChild(
LOWsrc/scene/container/__tests__/Container.Culling.test.ts181 // expect(filterPush).toBeCalled();
LOWsrc/scene/container/__tests__/Container.Culling.test.ts201 // expect(_renderGraphics).toBeCalled();
LOWsrc/scene/container/__tests__/Container.test.ts321
LOWsrc/scene/container/__tests__/Container.test.ts341 // expect(index).toEqual(0);
LOWsrc/scene/text/canvas/CanvasTextGenerator.ts181 // For v4, we drew text at the colours of the drop shadow underneath the normal text. This gave the correct zInd
LOWsrc/scene/graphics/__tests__/Graphics.test.ts261
LOWsrc/scene/graphics/__tests__/Graphics.test.ts281 // graphics.moveTo(610, 500);
LOWsrc/scene/graphics/__tests__/Graphics.test.ts301 // const graphics = new Graphics();
LOWsrc/scene/graphics/__tests__/Graphics.test.ts321
LOWsrc/scene/graphics/__tests__/Graphics.test.ts341 // const graphics = new Graphics();
LOWsrc/scene/graphics/__tests__/Graphics.test.ts361
LOWsrc/scene/graphics/__tests__/Graphics.test.ts381 // graphics.drawRect(0, 0, 20, 20);
LOWsrc/scene/graphics/__tests__/Graphics.test.ts401 // graphics.drawRect(100, 0, 20, 20);
LOWsrc/scene/graphics/__tests__/Graphics.test.ts421
LOWsrc/scene/graphics/__tests__/Graphics.test.ts441
Verbosity Indicators5 hits · 10 pts
SeverityFileLineSnippet
LOW…rs/gpu/shader/utils/extractAttributesFromGpuProgram.ts101 // Step 1: Find the start of the vertex function (include '(' to avoid prefix matches)
LOW…rs/gpu/shader/utils/extractAttributesFromGpuProgram.ts109 // Step 2: Find the index of the next '->' after the start of the function
LOW…rs/gpu/shader/utils/extractAttributesFromGpuProgram.ts119 // Step 3: Try parsing inline @location decorators first
LOW…rs/gpu/shader/utils/extractAttributesFromGpuProgram.ts122 // Step 4: If no inline locations found, check for struct-based input
LOWsrc/rendering/renderers/gl/state/GlStateSystem.ts357 * or if polygon fill is activated then we need to check if the polygon offset changes.
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippet
LOWsrc/scene/text-bitmap/__tests__/BitmapText.test.ts252 text: 'Lorem ipsum\nHello\nHello',
LOWsrc/scene/text-bitmap/__tests__/BitmapText.test.ts261 text: 'Lorem ipsum\nHello\nHello',
LOWsrc/scene/text/__tests__/TextMetrics.test.ts19quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, \
LOWsrc/scene/text/__tests__/TextMetrics.test.ts19quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, \
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippet
LOW…dering/renderers/gl/shader/program/ensureAttributes.ts14 * don't forget to add all the info at creation!
LOWsrc/scene/text-bitmap/BitmapFontManager.ts88 * Don't forget to include spaces ' ' in your character set!
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWsrc/utils/data/clean.ts51 * // Example usage:
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWtranscoders/ktx/libktx.js9var Module=typeof LIBKTX!=="undefined"?LIBKTX:{};var readyPromiseResolve,readyPromiseReject;Module["ready"]=new Promise(